{"id":"CVE-2026-143207","summary":"net/mlx5e: Block E-Switch mode changes during IPsec policy creation","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Block E-Switch mode changes during IPsec policy creation\n\nEswitch mode changes can tear down the IPsec context while policy\ncreation is accessing it. The mode-blocking reference acquired when\ncreating a flow table comes too late: the table lookup already accesses\nthe IPsec context before taking that reference.\n\nTake a temporary mode-blocking reference before checking the IPsec\ncontext and validating the policy. This gets dropped after successful\nsetup, when the flow table holds its own reference.\n\nThe temporary reservation must allow reuse of existing IPsec tables.\nFor example:\n1. An offloaded inbound IPsec policy is added on the uplink.\n2. A TC flower rule is added on a VF representor.\n3. Another uplink policy is added using the same RX tables.\n\nThe third policy reuses the first policy's tables, so it must not be\nrejected merely because esw-\u003euser_count is nonzero. Add a check_users\nargument to mlx5_eswitch_block_mode(). Pass false for temporary policy\nreservations and true when creating the first table (rx_get()/tx_get()).\n\nTemporary reservations take mode_lock and check operation ownership\nwithout requiring eswitch user_count to be zero.\n\nmlx5e_xfrm_add_state() needs the same early mode reservation and is\nhandled in the next patch.\n\nThis was found by Sashiko, during review of the last patch in the\nseries. No reproduction attempted, as it seems quite a tricky race to\nsuccessfully trigger.","modified":"2026-12-03T11:01:38.454566180Z","published":"2026-12-03T09:20:30.152Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143207.json"},"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/36a2ab7fe7622f3411c5aa376e868a0e03b9b805"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d9e4ac08ea892da54c5aa7ae4a368f2d09db589c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143207.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143207"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0"},{"fixed":"36a2ab7fe7622f3411c5aa376e868a0e03b9b805"},{"fixed":"d9e4ac08ea892da54c5aa7ae4a368f2d09db589c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143207.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143207.json"}}],"schema_version":"1.9.2"}