CVE-2026-143206

Source
https://cve.org/CVERecord?id=CVE-2026-143206
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143206.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143206
Downstream
Published
2026-12-03T09:20:29Z
Modified
2026-12-03T11:01:37Z
Summary
net/mlx5e: Block E-Switch mode changes during IPsec state creation
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143206.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7a9fb35e8c3a67145fca262c304de65cb2f83abf
Fixed
fc72f3fd9d15a083330c626562201ab9a504c470
Fixed
0d09de8e4f11391e8468219dbbc7af027e39e9b8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143206.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.13.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143206.json"