PT-2026-167067

CVE-2026-143209

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix E-Switch races in uplink unbind
Unbinding the uplink Ethernet auxiliary driver in switchdev mode with offloaded IPsec policies deadlocks on the esw->mode lock semaphore: mlx5 eswitch safe aux devs remove() mlx5 esw hold() down read trylock(&esw->mode lock) (*) mlx5 core reps aux devs remove() ... mlx5e vport uplink rep unload() unregister netdev() xfrm dev unregister() xfrm dev policy flush() xfrm policy kill() xfrm dev policy delete() mlx5e xfrm del policy() mlx5e accel ipsec fs del pol() rx ft put policy() rx put() mlx5 eswitch unblock mode() down write(&esw->mode lock) (BOOM)
Another deadlock with IPsec states: mlx5 eswitch safe aux devs remove() mlx5 esw hold() down read trylock(&esw->mode lock) (*) mlx5 core reps aux devs remove() ... mlx5e vport uplink rep unload() unregister netdev() xfrm dev unregister() xfrm dev state flush() xfrm dev state free() mlx5e xfrm free state() mlx5e accel ipsec fs del rule() rx ft put() rx put() rx destroy() mlx5 eswitch unblock encap() down write(&esw->mode lock) (BOOM)
To fix these, first refactor initiators of eswitch operations so they no longer step on each other's toes.
The active/inactive toggle and setting the inline/encap mode now use the new mlx5 esw lock wait(), which waits for an operation in progress to finish. They all hold devl lock, so the only operation they can find in progress is an uplink unbind, which doesn't need devl lock. Setting the esw mode keeps using mlx5 esw try lock(), which also rejects the change while eswitch users exist and bails out with -EBUSY.
mlx5 eswitch safe aux devs remove() now also waits for an operation in progress with the same mlx5 esw lock wait() before initiating one, dropping mode lock and then removing representors. The deadlocks are avoided.
Finishing an operation in progress now requires mlx5 esw unlock() to wake up any waiters instead of plain up write(&mode lock).
As a side effect, the timeout in mlx5 eswitch safe aux devs remove() is gone, which fixes another scary corner case, of representor devs not being removed on timeout but leaked instead. The timeout hid the SD deadlock fixed in the previous patch. Now that that's gone, no reason for the timeout to stay.
This was found by internal testing and reproduced on HW. It was independently found by Sashiko during analysis of another patch in this series.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾