CVE-2026-53239

Source
https://cve.org/CVERecord?id=CVE-2026-53239
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53239.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-53239
Downstream
Related
Published
2026-06-25T08:39:35.149Z
Modified
2026-07-22T18:22:57.417556807Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
xfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()
Details

In the Linux kernel, the following vulnerability has been resolved:

xfrm: policy: fix use-after-free on inexact bin in xfrmpolicybysel_ctx()

Fix the race by pruning the bin while still holding xfrmpolicylock, before dropping it. Use __xfrmpolicyinexactprunebin() directly since the lock is already held. The wrapper xfrmpolicyinexactprunebin() becomes unused and is removed.

Race:

CPU0 (XFRMMSGDELPOLICY) CPU1 (XFRMMSGNEWSPDINFO) ========================== ========================== xfrmpolicybyselctx(): spinlockbh(xfrmpolicylock) bin = xfrmpolicyinexactlookup() __xfrmpolicyunlink(pol) spinunlockbh(xfrmpolicylock) xfrmpolicykill(ret) // wide window, lock not held xfrmhashrebuild(): spinlockbh(xfrmpolicylock) __xfrmpolicyinexactflush(): kfreercu(bin) // bin freed spinunlockbh(xfrmpolicylock) xfrmpolicyinexactprunebin(bin) // UAF: bin is freed

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53239.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6be3b0db6db82cf056a72cc18042048edd27f8ee
Fixed
8fc536e9f6856230f19c7d13e71af064b6a77b22
Fixed
c4c1ea36d83bf3c4569468ca5b8b614fda1bf821
Fixed
25c8c7fb3b0b9668c7d05e209f58c158d2b020c7
Fixed
42827d03f8009a6a218bacab153e21f39d6a121c
Fixed
88697cf980222d5906a37bf47662dac0732e2a0f
Fixed
b5316e2b8614a87d8736941972441cb47bfd4491
Fixed
ec82ea4eb220164d854f8734ca5a35e23e577b94
Fixed
7f2d76c9c03257c0782afef9d95321fa04096f60

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53239.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.10.259
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.210
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.176
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.143
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.94
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.36
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.13

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53239.json"