CVE-2026-143206
Received Received - Intake

Use-After-Free in Linux Kernel mlx5e IPsec State Handling

Vulnerability report for CVE-2026-143206, 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: 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.

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
mlx5 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 in the mlx5e driver's IPsec state creation. The issue occurs when the function mlx5e_xfrm_add_state() accesses priv->ipsec before blocking eswitch mode changes. A concurrent profile change could free the IPsec context, leading to a use-after-free vulnerability.

Detection Guidance

This vulnerability is specific to the Linux kernel's mlx5e driver and involves a race condition during IPsec state creation. Detection requires checking kernel logs for use-after-free errors related to mlx5e or IPsec operations. Monitor for kernel panics or crashes during IPsec state changes. No direct commands are provided in the context to detect this issue.

Impact Analysis

This vulnerability could allow an attacker to cause a use-after-free condition, potentially leading to system crashes, privilege escalation, or other unintended behavior. It specifically affects systems using the mlx5e driver with IPsec functionality.

Mitigation Strategies

Apply the latest kernel patches that address this issue. Update the mlx5e driver to a version that includes the fix for the race condition. Restart services using IPsec or mlx5e to ensure the patched code is active. Monitor system stability after applying updates.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-143206. 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...