{"id":"CVE-2026-53239","published":"2026-06-25T08:39:35Z","modified":"2026-11-10T12:48:20Z","title":"xfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()\n\nFix the race by pruning the bin while still holding xfrm_policy_lock,\nbefore dropping it. Use __xfrm_policy_inexact_prune_bin() directly since\nthe lock is already held. The wrapper xfrm_policy_inexact_prune_bin()\nbecomes unused and is removed.\n\nRace:\n\n  CPU0 (XFRM_MSG_DELPOLICY)           CPU1 (XFRM_MSG_NEWSPDINFO)\n  ==========================          ==========================\n  xfrm_policy_bysel_ctx():\n    spin_lock_bh(xfrm_policy_lock)\n    bin = xfrm_policy_inexact_lookup()\n    __xfrm_policy_unlink(pol)\n    spin_unlock_bh(xfrm_policy_lock)\n    xfrm_policy_kill(ret)\n    // wide window, lock not held\n                                       xfrm_hash_rebuild():\n                                         spin_lock_bh(xfrm_policy_lock)\n                                         __xfrm_policy_inexact_flush():\n                                           kfree_rcu(bin)  // bin freed\n                                         spin_unlock_bh(xfrm_policy_lock)\n    xfrm_policy_inexact_prune_bin(bin)\n    // UAF: bin is freed","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00102,"percentile":0.00934,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://git.kernel.org/stable/c/8fc536e9f6856230f19c7d13e71af064b6a77b22","tags":[]},{"url":"https://git.kernel.org/stable/c/c4c1ea36d83bf3c4569468ca5b8b614fda1bf821","tags":[]},{"url":"https://git.kernel.org/stable/c/25c8c7fb3b0b9668c7d05e209f58c158d2b020c7","tags":[]},{"url":"https://git.kernel.org/stable/c/42827d03f8009a6a218bacab153e21f39d6a121c","tags":[]},{"url":"https://git.kernel.org/stable/c/88697cf980222d5906a37bf47662dac0732e2a0f","tags":[]},{"url":"https://git.kernel.org/stable/c/b5316e2b8614a87d8736941972441cb47bfd4491","tags":[]},{"url":"https://git.kernel.org/stable/c/ec82ea4eb220164d854f8734ca5a35e23e577b94","tags":[]},{"url":"https://git.kernel.org/stable/c/7f2d76c9c03257c0782afef9d95321fa04096f60","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":0.19},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 8fc536e9f6856230f19c7d13e71af064b6a77b22",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < c4c1ea36d83bf3c4569468ca5b8b614fda1bf821",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 42827d03f8009a6a218bacab153e21f39d6a121c",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 88697cf980222d5906a37bf47662dac0732e2a0f",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < b5316e2b8614a87d8736941972441cb47bfd4491",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < ec82ea4eb220164d854f8734ca5a35e23e577b94",">= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 7f2d76c9c03257c0782afef9d95321fa04096f60"]},{"vendor":"Linux","product":"Linux","versions":["5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:27:30.875032Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39330","exploited":false,"provenance":"source"}}