CVE-2026-143212

Source
https://cve.org/CVERecord?id=CVE-2026-143212
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143212.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143212
Downstream
Published
2026-12-03T09:20:33Z
Modified
2026-12-03T11:01:40Z
Summary
net/mlx5: macsec: Don't remove fs_id when adding a rule fails
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143212.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
d4ece08f4b1d29471cc4c0eb0c87427600a77acd
Fixed
5d352f7730271ec8f28826579826129a7e244711
Fixed
cdab372f827b8933816aba50199bcb914ce3ff2c
Fixed
c9270b5b9b2a1958aa1049c3a9f4ba52b88aa3b0
Fixed
5175da73dd128520ad6d704d7fe54926ee5f658b

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

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