Executive summary
CVE-2026-143208 documents a race condition between Devlink E-Switch mode changes and IPsec XFRM state or policy creation in the Linux kernel's net/mlx5e driver. The vulnerable code path manages the lifetime of a per-netdev core-device pointer (priv->mdev) that can be cleared, reinitialized, or torn by concurrent mlx5e_priv_cleanup() and mlx5e_priv_init() invocations. The fix introduces single-read snapshots, WRITE_ONCE() initialization and clearing, data_race() annotations on the read sites, and rejection with -EBUSY when the pointer is observed as NULL.
The supplied context does not include exploitation evidence, a CVSS score or vector, or a list of exact affected kernel versions. The discoverer's own notes indicate that no reproduction was attempted and that the race window is considered vanishingly small, which is consistent with the supplied risk assessment classifying the issue as low severity.
Background
The net/mlx5e driver supports modern NVIDIA/Mellanox ConnectX-family Ethernet NICs. Devlink E-Switch mode is an administrative setting that determines how a NIC's embedded switch presents ports and offloads to the operating system. Mode changes performed through Devlink do not unregister the associated netdev, so other control-plane operations that target that netdev can continue to run while the driver's private structure is being rebuilt in place.
The Linux kernel's XFRM framework handles IPsec state and policy objects. When hardware offload is available, xfrm_dev_state_add() and the related policy creation callbacks interact with the NIC driver to push offload state into the adapter.
Affected systems
- Product stack: Linux kernel with the
net/mlx5edriver for NVIDIA/Mellanox ConnectX-family Ethernet adapters.
- Driver path: IPsec-related XFRM state and policy creation callbacks in the mlx5e driver.
- Required configuration overlap: a Devlink E-Switch mode change occurring while IPsec XFRM state or policy creation is in flight against the same netdev.
- Practical exposure: systems that do not use the mlx5e driver, do not perform Devlink E-Switch mode changes, or do not use IPsec/XFRM operations against the same netdev are not described as affected.
- Version detail: the supplied advisory does not enumerate the specific kernel releases that contain the vulnerable code. Operators should consult their distribution's kernel changelogs and the upstream commit referenced from the linked advisories once published to determine whether their deployed kernel is vulnerable.
The linked vulnerability record does not list a CVSS score, and no entry on the CISA Known Exploited Vulnerabilities catalog was included in the supplied context.
Root cause
During a Devlink E-Switch mode change, the netdev profile is replaced in place: the netdev itself is not unregistered, but the driver's private data structure is cleared by mlx5e_priv_cleanup() (often via memset()) and later initialized again by mlx5e_priv_init(). Because XFRM callbacks can be invoked against that netdev during this window, reads of priv->mdev can observe:
- a NULL pointer while cleanup has cleared the field but the new profile has not yet installed one, or
- a torn value when concurrent writes overlap with reads on architectures where natural-width stores are not atomic in the relevant context, or
- simply two different non-NULL values when the same callback performs multiple reads.
The advisory explicitly notes that the underlying IPsec context itself is handled by separate code; the defect is specifically in how the core-device pointer is exposed to XFRM callbacks during the profile transition.
The proposed change reads priv->mdev once per add callback, retains that value throughout the callback (including error unwinding), uses WRITE_ONCE() at the boundaries where the pointer is initialized and cleared, and annotates the read sites with data_race(). The combination ensures that the bulk zeroing performed by memset() cannot turn an already-NULL pointer into a visibly torn value, while the data_race() annotation documents the harmless overlap.
Impact
The technical outcomes that the upstream description targets are:
- Kernel crash or instability from dereferencing a NULL or otherwise invalid core-device pointer during XFRM state or policy processing.
- Silent fallback to software IPsec for a crypto-offload security association. If the implementation had returned
-EOPNOTSUPPwhenpriv->mdevis NULL,xfrm_dev_state_add()would have fallen back to software for the entire lifetime of that security association, even though the conflict is transient. Returning-EBUSYinstead signals that the operation is in collision with an ongoing eswitch mode change and avoids that silent degradation.
No evidence of exploitation in the wild is presented in the supplied sources, and the issue is not recorded on the CISA KEV catalog. The discoverer notes that reproducing the race was not attempted and that the window appears vanishingly small.
Mitigation
- Apply upstream Linux kernel patches that land the fix for CVE-2026-143208 once they are merged into your distribution's kernel stream. The supplied context does not name a specific fixed kernel version, so refer to your distribution vendor's advisories and the upstream commit referenced from the linked records to confirm coverage.
- Serialize administrative operations as a stopgap: avoid performing Devlink E-Switch mode changes at the same time as IPsec XFRM state or policy creation on the same netdev. Running these operations from a single maintenance window prevents the overlap that triggers the race.
- Reconsider hardware offload in environments that cannot be patched promptly: disabling or pausing the mlx5e IPsec hardware-offload path forces XFRM state and policy creation down a less concurrent code path. Where hardware offload is required for throughput, weigh the operational risk against the narrow race window.
- Audit configuration relevance by verifying whether the deployment uses the mlx5e driver, IPsec with potential crypto offload, XFRM state/policy creation, and Devlink E-Switch mode changes. Environments without any of these elements are not described as affected.
- Watch for indirect indicators in kernel logs and telemetry, such as unexpected
-EBUSYresponses from IPsec operations, oops or warnings referencingnet/mlx5e, and security associations that unexpectedly operate in software mode after a mode change.