{"id":"CVE-2026-143212","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:\n\nnet/mlx5: macsec: Don't remove fs_id when adding a rule fails\n\nmacsec_fs_tx_add_rule() and macsec_fs_rx_add_rule() clean up a failed\nrule with macsec_fs_{tx,rx}_del_rule(), which also calls\nmacsec_fs_id_del(). The fs_id is never in the xarray at that point:\nmacsec_fs_id_add() is the last step of adding a rule and removes its\nown entry when it fails.\n\nmacsec_fs_id_del() then dereferences NULL, through macsec_device for\nthe first SA of a MACsec netdev and through fs_id_found otherwise. On\nRX, the SAs of one SC share an fs_id, so a failure while adding another\nSA drops the reference that an existing SA holds.\n\nSplit the rule teardown from the fs_id removal and do only the teardown\non the error paths.","modified":"2026-12-03T11:01:40.008458320Z","published":"2026-12-03T09:20:33.351Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143212.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5175da73dd128520ad6d704d7fe54926ee5f658b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d352f7730271ec8f28826579826129a7e244711"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9270b5b9b2a1958aa1049c3a9f4ba52b88aa3b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cdab372f827b8933816aba50199bcb914ce3ff2c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143212.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143212"}],"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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}