# CVE-2026-53239: xfrm: policy: fix use-after-free on inexact bin in xfrm\_policy\_bysel\_ctx()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-06-25T08:39:35.149Z
- **Modified:** 2026-11-10T13:19:24.540Z

## Who should check

- Anyone running Linux \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 8fc536e9f6856230f19c7d13e71af064b6a77b22; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< c4c1ea36d83bf3c4569468ca5b8b614fda1bf821; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 42827d03f8009a6a218bacab153e21f39d6a121c; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 88697cf980222d5906a37bf47662dac0732e2a0f; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< b5316e2b8614a87d8736941972441cb47bfd4491; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< ec82ea4eb220164d854f8734ca5a35e23e577b94; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 7f2d76c9c03257c0782afef9d95321fa04096f60
- Anyone running Linux 5.0

## Description

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

xfrm: policy: fix use-after-free on inexact bin in xfrm\_policy\_bysel\_ctx()

Fix the race by pruning the bin while still holding xfrm\_policy\_lock,
before dropping it. Use \_\_xfrm\_policy\_inexact\_prune\_bin() directly since
the lock is already held. The wrapper xfrm\_policy\_inexact\_prune\_bin()
becomes unused and is removed.

Race:

  CPU0 (XFRM\_MSG\_DELPOLICY)           CPU1 (XFRM\_MSG\_NEWSPDINFO)
  ==========================          ==========================
  xfrm\_policy\_bysel\_ctx():
    spin\_lock\_bh(xfrm\_policy\_lock)
    bin = xfrm\_policy\_inexact\_lookup()
    \_\_xfrm\_policy\_unlink(pol)
    spin\_unlock\_bh(xfrm\_policy\_lock)
    xfrm\_policy\_kill(ret)
    // wide window, lock not held
                                       xfrm\_hash\_rebuild():
                                         spin\_lock\_bh(xfrm\_policy\_lock)
                                         \_\_xfrm\_policy\_inexact\_flush():
                                           kfree\_rcu(bin)  // bin freed
                                         spin\_unlock\_bh(xfrm\_policy\_lock)
    xfrm\_policy\_inexact\_prune\_bin(bin)
    // UAF: bin is freed

## Affected and fixed versions

- Linux: \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 8fc536e9f6856230f19c7d13e71af064b6a77b22; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< c4c1ea36d83bf3c4569468ca5b8b614fda1bf821; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 42827d03f8009a6a218bacab153e21f39d6a121c; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 88697cf980222d5906a37bf47662dac0732e2a0f; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< b5316e2b8614a87d8736941972441cb47bfd4491; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< ec82ea4eb220164d854f8734ca5a35e23e577b94; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 7f2d76c9c03257c0782afef9d95321fa04096f60 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- Upgrade Linux to 7f2d76c9c03257c0782afef9d95321fa04096f60 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53239. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53239.md
Affected: Linux >= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 8fc536e9f6856230f19c7d13e71af064b6a77b22; >= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < c4c1ea36d83bf3c4569468ca5b8b614fda1bf821; >= 6be3b0db6db82cf056a72cc18042048edd27f8ee, < 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7; >= 6be3b0db6db82cf056a72cc…
Fixed in: Linux 8fc536e9f6856230f19c7d13e71af064b6a77b22, Linux 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7, Linux 42827d03f8009a6a218bacab153e21f39d6a121c, Linux 88697cf980222d5906a37bf47662dac0732e2a0f, Linux 7f2d76c9c03257c0782afef9d95321fa04096f60

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53239 being exploited?

There is no confirmed exploitation: CVE-2026-53239 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-53239?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-53239?

Linux \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 8fc536e9f6856230f19c7d13e71af064b6a77b22; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< c4c1ea36d83bf3c4569468ca5b8b614fda1bf821; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 42827d03f8009a6a218bacab153e21f39d6a121c; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 88697cf980222d5906a37bf47662dac0732e2a0f; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< b5316e2b8614a87d8736941972441cb47bfd4491; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< ec82ea4eb220164d854f8734ca5a35e23e577b94; \>= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \< 7f2d76c9c03257c0782afef9d95321fa04096f60; Linux 5.0.

### Is there a fix for CVE-2026-53239?

Yes. Fixed in Linux 8fc536e9f6856230f19c7d13e71af064b6a77b22, Linux 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7, Linux 42827d03f8009a6a218bacab153e21f39d6a121c, Linux 88697cf980222d5906a37bf47662dac0732e2a0f, Linux 7f2d76c9c03257c0782afef9d95321fa04096f60. Upgrade Linux to 7f2d76c9c03257c0782afef9d95321fa04096f60 or later.

### How do I check if I'm affected by CVE-2026-53239?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8fc536e9f6856230f19c7d13e71af064b6a77b22>
- patch: <https://git.kernel.org/stable/c/c4c1ea36d83bf3c4569468ca5b8b614fda1bf821>
- patch: <https://git.kernel.org/stable/c/25c8c7fb3b0b9668c7d05e209f58c158d2b020c7>
- patch: <https://git.kernel.org/stable/c/42827d03f8009a6a218bacab153e21f39d6a121c>
- patch: <https://git.kernel.org/stable/c/88697cf980222d5906a37bf47662dac0732e2a0f>
- patch: <https://git.kernel.org/stable/c/b5316e2b8614a87d8736941972441cb47bfd4491>
- patch: <https://git.kernel.org/stable/c/ec82ea4eb220164d854f8734ca5a35e23e577b94>
- patch: <https://git.kernel.org/stable/c/7f2d76c9c03257c0782afef9d95321fa04096f60>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53239>

HTML: <https://flawdb.com/CVE-2026-53239> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53239>
