CVE-2026-143207
not scored yetnet/mlx5e: Block E-Switch mode changes during IPsec policy creation
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Block E-Switch mode changes during IPsec policy creation
Eswitch mode changes can tear down the IPsec context while policy
creation is accessing it. The mode-blocking reference acquired when
creating a flow table comes too late: the table lookup already accesses
the IPsec context before taking that reference.
Take a temporary mode-blocking reference before checking the IPsec
context and validating the policy. This gets dropped after successful
setup, when the flow table holds its own reference.
The temporary reservation must allow reuse of existing IPsec tables.
For example:
- An offloaded inbound IPsec policy is added on the uplink.
- A TC flower rule is added on a VF representor.
- Another uplink policy is added using the same RX tables.
The third policy reuses the first policy's tables, so it must not be
rejected merely because esw->user_count is nonzero. Add a check_users
argument to mlx5_eswitch_block_mode(). Pass false for temporary policy
reservations and true when creating the first table (rx_get()/tx_get()).
Temporary reservations take mode_lock and check operation ownership
without requiring eswitch user_count to be zero.
mlx5e_xfrm_add_state() needs the same early mode reservation and is
handled in the next patch.
This was found by Sashiko, during review of the last patch in the
series. No reproduction attempted, as it seems quite a tricky race to
successfully trigger.
- Published
- 3 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0, < 36a2ab7fe7622f3411c5aa376e868a0e03b9b805; >= a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0, < d9e4ac08ea892da54c5aa7ae4a368f2d09db589c | 36a2ab7fe7622f3411c5aa376e868a0e03b9b805, d9e4ac08ea892da54c5aa7ae4a368f2d09db589c |
| CVE List | Linux | Linux | = 6.2 |
References
- https://git.kernel.org/stable/c/36a2ab7fe7622f3411c5aa376e868a0e03b9b805
- https://git.kernel.org/stable/c/d9e4ac08ea892da54c5aa7ae4a368f2d09db589c
History
- 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)