{"api_version":"1","generated_at":"2026-12-03T13:40:17+00:00","cve":"CVE-2026-143206","urls":{"html":"https://cve.report/CVE-2026-143206","api":"https://cve.report/api/cve/CVE-2026-143206.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143206","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143206"},"summary":{"title":"net/mlx5e: Block E-Switch mode changes during IPsec state creation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Block E-Switch mode changes during IPsec state creation\n\nmlx5e_xfrm_add_state() reads priv->ipsec before blocking eswitch mode\nchanges. A concurrent profile change can free the saved IPsec context\nand cause use-after-free.\n\nThe temporary mode reservation was added in commit 22239eb258bc\n(\"net/mlx5e: Prevent tunnel reformat when tunnel mode not allowed\")\nafter saving priv->ipsec but the race was actually enabled by the\n\"Fixes\" commit.\nExtend the reservation to cover obtaining the context as well.\n\nUse mlx5_eswitch_block_mode(mdev, false) for the temporary reservation,\nas policy creation does, to check operation ownership under mode_lock\nwithout rejecting existing eswitch users. This allows reusing existing\nIPsec tables while TC rules exist on VF representors.\n\nCheck the context only after taking the mode reservation, so a\nconcurrent mode change consistently returns -EBUSY and a missing context\nreturns -EOPNOTSUPP, preserving software fallback for crypto offload.\nKeep the atomic acquire-placeholder path exempt, since it creates no\nhardware state and cannot take sleeping locks.\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/0d09de8e4f11391e8468219dbbc7af027e39e9b8","name":"https://git.kernel.org/stable/c/0d09de8e4f11391e8468219dbbc7af027e39e9b8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fc72f3fd9d15a083330c626562201ab9a504c470","name":"https://git.kernel.org/stable/c/fc72f3fd9d15a083330c626562201ab9a504c470","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143206","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143206","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7a9fb35e8c3a67145fca262c304de65cb2f83abf fc72f3fd9d15a083330c626562201ab9a504c470 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7a9fb35e8c3a67145fca262c304de65cb2f83abf 0d09de8e4f11391e8468219dbbc7af027e39e9b8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.13 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":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"fc72f3fd9d15a083330c626562201ab9a504c470","status":"affected","version":"7a9fb35e8c3a67145fca262c304de65cb2f83abf","versionType":"git"},{"lessThan":"0d09de8e4f11391e8468219dbbc7af027e39e9b8","status":"affected","version":"7a9fb35e8c3a67145fca262c304de65cb2f83abf","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.13"},{"lessThan":"5.13","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":"5.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"5.13","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 state creation\n\nmlx5e_xfrm_add_state() reads priv->ipsec before blocking eswitch mode\nchanges. A concurrent profile change can free the saved IPsec context\nand cause use-after-free.\n\nThe temporary mode reservation was added in commit 22239eb258bc\n(\"net/mlx5e: Prevent tunnel reformat when tunnel mode not allowed\")\nafter saving priv->ipsec but the race was actually enabled by the\n\"Fixes\" commit.\nExtend the reservation to cover obtaining the context as well.\n\nUse mlx5_eswitch_block_mode(mdev, false) for the temporary reservation,\nas policy creation does, to check operation ownership under mode_lock\nwithout rejecting existing eswitch users. This allows reusing existing\nIPsec tables while TC rules exist on VF representors.\n\nCheck the context only after taking the mode reservation, so a\nconcurrent mode change consistently returns -EBUSY and a missing context\nreturns -EOPNOTSUPP, preserving software fallback for crypto offload.\nKeep the atomic acquire-placeholder path exempt, since it creates no\nhardware state and cannot take sleeping locks.\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:29.509Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/fc72f3fd9d15a083330c626562201ab9a504c470"},{"url":"https://git.kernel.org/stable/c/0d09de8e4f11391e8468219dbbc7af027e39e9b8"}],"title":"net/mlx5e: Block E-Switch mode changes during IPsec state creation","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143206","datePublished":"2026-12-03T09:20:29.509Z","dateReserved":"2026-12-03T03:10:28.359Z","dateUpdated":"2026-12-03T09:20:29.509Z","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":"143206","Ordinal":"1","Title":"net/mlx5e: Block E-Switch mode changes during IPsec state creati","CVE":"CVE-2026-143206","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143206","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Block E-Switch mode changes during IPsec state creation\n\nmlx5e_xfrm_add_state() reads priv->ipsec before blocking eswitch mode\nchanges. A concurrent profile change can free the saved IPsec context\nand cause use-after-free.\n\nThe temporary mode reservation was added in commit 22239eb258bc\n(\"net/mlx5e: Prevent tunnel reformat when tunnel mode not allowed\")\nafter saving priv->ipsec but the race was actually enabled by the\n\"Fixes\" commit.\nExtend the reservation to cover obtaining the context as well.\n\nUse mlx5_eswitch_block_mode(mdev, false) for the temporary reservation,\nas policy creation does, to check operation ownership under mode_lock\nwithout rejecting existing eswitch users. This allows reusing existing\nIPsec tables while TC rules exist on VF representors.\n\nCheck the context only after taking the mode reservation, so a\nconcurrent mode change consistently returns -EBUSY and a missing context\nreturns -EOPNOTSUPP, preserving software fallback for crypto offload.\nKeep the atomic acquire-placeholder path exempt, since it creates no\nhardware state and cannot take sleeping locks.\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 state creati"}]}}}