{"api_version":"1","generated_at":"2026-12-04T14:22:00+00:00","cve":"CVE-2026-143207","urls":{"html":"https://cve.report/CVE-2026-143207","api":"https://cve.report/api/cve/CVE-2026-143207.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143207","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143207"},"summary":{"title":"net/mlx5e: Block E-Switch mode changes during IPsec policy creation","description":"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->user_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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:58","updated_at":"2026-12-03 10:17:58"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/36a2ab7fe7622f3411c5aa376e868a0e03b9b805","name":"https://git.kernel.org/stable/c/36a2ab7fe7622f3411c5aa376e868a0e03b9b805","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d9e4ac08ea892da54c5aa7ae4a368f2d09db589c","name":"https://git.kernel.org/stable/c/d9e4ac08ea892da54c5aa7ae4a368f2d09db589c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143207","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143207","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0 36a2ab7fe7622f3411c5aa376e868a0e03b9b805 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0 d9e4ac08ea892da54c5aa7ae4a368f2d09db589c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143207","cve":"CVE-2026-143207","epss":"0.001980000","percentile":"0.099460000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c","drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c","drivers/net/ethernet/mellanox/mlx5/core/eswitch.h","drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"36a2ab7fe7622f3411c5aa376e868a0e03b9b805","status":"affected","version":"a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0","versionType":"git"},{"lessThan":"d9e4ac08ea892da54c5aa7ae4a368f2d09db589c","status":"affected","version":"a5b8ca9471d394459152a2a7f8f5f8227ae3e3c0","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c","drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c","drivers/net/ethernet/mellanox/mlx5/core/eswitch.h","drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"6.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->user_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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:20:30.152Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/36a2ab7fe7622f3411c5aa376e868a0e03b9b805"},{"url":"https://git.kernel.org/stable/c/d9e4ac08ea892da54c5aa7ae4a368f2d09db589c"}],"title":"net/mlx5e: Block E-Switch mode changes during IPsec policy creation","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143207","datePublished":"2026-12-03T09:20:30.152Z","dateReserved":"2026-12-03T03:10:28.359Z","dateUpdated":"2026-12-03T09:20:30.152Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:58","lastModifiedDate":"2026-12-03 10:17:58","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143207","Ordinal":"1","Title":"net/mlx5e: Block E-Switch mode changes during IPsec policy creat","CVE":"CVE-2026-143207","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143207","Ordinal":"1","NoteData":"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->user_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.","Type":"Description","Title":"net/mlx5e: Block E-Switch mode changes during IPsec policy creat"}]}}}