CVE-2026-143212: Linux kernel · net/mlx5: macsec: Don't remove fs_id when adding a rule fails
Affects Linux kernelSource CVE Database V5
Not known to be exploited · fixed in cdab372f827b8933816aba50199bcb914ce3ff2c : update Linux kernel when convenient.
Data as of 3 Dec 2026, 09:45 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in cdab372f827b8933816aba50199bcb914ce3ff2c, c9270b5b9b2a1958aa1049c3a9f4ba52b88aa3b0, 5175da73dd128520ad6d704d7fe54926ee5f658b +1
Exploitation evidence
Disclosed: evidence found.
CVE published 3 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade Linux kernel to cdab372f827b8933816aba50199bcb914ce3ff2c, c9270b5b9b2a1958aa1049c3a9f4ba52b88aa3b0, 5175da73dd128520ad6d704d7fe54926ee5f658b or 5d352f7730271ec8f28826579826129a7e244711.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: macsec: Don't remove fs_id when adding a rule fails macsec_fs_tx_add_rule() and macsec_fs_rx_add_rule() clean up a failed rule with macsec_fs_{tx,rx}_del_rule(), which also calls macsec_fs_id_del(). The fs_id is never in the xarray at that point: macsec_fs_id_add() is the last step of adding a rule and removes its own entry when it fails. macsec_fs_id_del() then dereferences NULL, through macsec_device for the first SA of a MACsec netdev and through fs_id_found otherwise. On RX, the SAs of one SC share an fs_id, so a failure while adding another SA drops the reference that an existing SA holds. Split the rule teardown from the fs_id removal and do only the teardown on the error paths.
References
- git.kernel.org/stable/c/5d352f7730271ec8f28826579826129a7e244711 (opens in a new tab)
- git.kernel.org/stable/c/cdab372f827b8933816aba50199bcb914ce3ff2c (opens in a new tab)
- git.kernel.org/stable/c/c9270b5b9b2a1958aa1049c3a9f4ba52b88aa3b0 (opens in a new tab)
- git.kernel.org/stable/c/5175da73dd128520ad6d704d7fe54926ee5f658b (opens in a new tab)