CVE-2026-143208
Received Received - Intake

Memory Corruption in Linux Kernel IPsec Core

Vulnerability report for CVE-2026-143208, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-03

Last updated on: 2026-12-03

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-03
Last Modified
2026-12-03
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves a race condition during network device profile changes. When the devlink E-Switch mode changes, the netdev profile is replaced without unregistering the netdev. This can cause XFRM state and policy creation to run while the device private structure is being cleared or reinitialized, leading to NULL or inconsistent pointers in priv->mdev. The fix ensures priv->mdev is read once per operation and saved, preventing NULL pointer dereferences or torn values during concurrent access.

Detection Guidance

This vulnerability is specific to the Linux kernel's mlx5e driver and involves race conditions during IPsec operations. Detection requires checking kernel logs for errors related to mlx5e or IPsec, such as NULL pointer dereferences or race condition warnings. Commands like dmesg | grep mlx5e or journalctl -k | grep mlx5e may help identify issues.

Impact Analysis

This vulnerability could cause system instability or crashes in Linux systems using the mlx5e driver with IPsec offloading enabled. It may lead to unexpected behavior during network configuration changes, such as mode switches, potentially disrupting network services or causing kernel panics. Systems not using mlx5e or IPsec offloading are unaffected.

Mitigation Strategies

Apply the latest kernel updates or patches that address this issue. If using Mellanox NICs with IPsec, avoid changing eswitch modes during active IPsec sessions. Monitor kernel logs for related errors and consider disabling IPsec offloading temporarily if the issue persists.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-143208. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...