CVE-2026-143208

Not scored yetLast modified Dec 3, 2026

Description

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

net/mlx5e: Fix ipsec core device access during profile changes

Devlink E-Switch mode changes replace the netdev profile without unregistering the netdev. XFRM state and policy creation can therefore run while mlx5e_priv_cleanup() clears priv with memset() or mlx5e_priv_init() initializes it again. Accesses to priv->mdev can observe NULL or a torn pointer, and repeated loads may return different values.

Read priv->mdev once in each add callback and use the saved pointer throughout the callback, including error unwinding. The core device survives the in-place profile change, so a saved non-NULL pointer remains valid even if priv is cleared in the meantime.

A NULL priv->mdev means a profile change is in progress, which only happens during an eswitch mode change. Return -EBUSY in that case, as mlx5_eswitch_block_mode() does for the same mode change. -EOPNOTSUPP would make xfrm_dev_state_add() silently fall back to software for a crypto offload SA for its whole lifetime.

Use WRITE_ONCE() when initializing priv->mdev and when clearing it before memset(). This makes the transition to NULL atomic; the subsequent bulk clear only writes zero bytes over an already NULL pointer. Annotate the READ_ONCE() snapshots with data_race() to allow that harmless overlap with the unmarked memset() without suppressing checks for the rest of priv.

This fixes the core-device pointer accesses. Protecting the IPsec context itself during state and policy creation is handled separately.

This was found by Sashiko, during review of the next patches in the series. No attempt was made at reproducing this race, the chances seem vanishingly small.

Metrics

No CVSS score has been published yet.

Affected software

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

No affected versions have been published.

Timeline

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

Related CVEs from 2026

CVE-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, ipvlanCVE-2026-143218In the Linux kernel, the following vulnerability has been resolved: net: require a full socket in sock_confirm_neigh() An skb can retain dCVE-2026-143219In the Linux kernel, the following vulnerability has been resolved: net: protect negative destination advice with RCU SO_CNX_ADVICE calls
CVE-2026-143208: Unscored | Vulnix