CVE-2026-143206

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Block E-Switch mode changes during IPsec state creation

mlx5e_xfrm_add_state() reads priv->ipsec before blocking eswitch mode changes. A concurrent profile change can free the saved IPsec context and cause use-after-free.

The temporary mode reservation was added in commit 22239eb258bc ("net/mlx5e: Prevent tunnel reformat when tunnel mode not allowed") after saving priv->ipsec but the race was actually enabled by the "Fixes" commit. Extend the reservation to cover obtaining the context as well.

Use mlx5_eswitch_block_mode(mdev, false) for the temporary reservation, as policy creation does, to check operation ownership under mode_lock without rejecting existing eswitch users. This allows reusing existing IPsec tables while TC rules exist on VF representors.

Check the context only after taking the mode reservation, so a concurrent mode change consistently returns -EBUSY and a missing context returns -EOPNOTSUPP, preserving software fallback for crypto offload. Keep the atomic acquire-placeholder path exempt, since it creates no hardware state and cannot take sleeping locks.

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 7a9fb35e8c3a67145fca262c304de65cb2f83abf, < fc72f3fd9d15a083330c626562201ab9a504c470; >= 7a9fb35e8c3a67145fca262c304de65cb2f83abf, < 0d09de8e4f11391e8468219dbbc7af027e39e9b8
LinuxLinux5.13

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143207In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Block E-Switch mode changes during IPsec policy creation EsCVE-2026-143208In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix ipsec core device access during profile changes DevlinkCVE-2026-143209In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix E-Switch races in uplink unbind Unbinding the uplink EtCVE-2026-143218.2The divi-dash WordPress plugin before 1.0.7 does not validate the source of the client IP address it uses for rate limiting and banning, allCVE-2026-143210In the Linux kernel, the following vulnerability has been resolved: net: skbuff: uncharge trimmed zerocopy frags on error __zerocopy_sg_frCVE-2026-143211In the Linux kernel, the following vulnerability has been resolved: ptp: kvm: x86: Leak clock_pair page if changing its encryption fails ICVE-2026-143212In the Linux kernel, the following vulnerability has been resolved: net/mlx5: macsec: Don't remove fs_id when adding a rule fails macsec_fCVE-2026-143213In the Linux kernel, the following vulnerability has been resolved: fbnic: Wait for the outbound flush to complete on mailbox teardown TheCVE-2026-143214In the Linux kernel, the following vulnerability has been resolved: net: mana: fix XDP_REDIRECT of pre-allocated RX buffers mana_pre_allocCVE-2026-143215In the Linux kernel, the following vulnerability has been resolved: net: fix mac_len of skbs copied by generic XDP skb_pp_cow_data() copieCVE-2026-143216In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: mesh: don't linearize SKBs unnecessarily If mesh fast-CVE-2026-143217In the Linux kernel, the following vulnerability has been resolved: ipvlan: make outbound skb headers writable In L3 and L3S modes, ipvlan
CVE-2026-143206: Unscored | Vulnix