7.8
HIGH CVSS 3.1
CVE-2026-53239
xfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()
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

INFO

Published Date :

June 25, 2026, 9:16 a.m.

Last Modified :

July 8, 2026, 1:06 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-53239 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Linux kernel use-after-free resolved by fixing race condition in xfrm policy handling.
  • Apply the Linux kernel patch for xfrm policy race condition.
  • Update the Linux kernel to the latest secure version.
  • Ensure xfrm policy updates are properly synchronized.
  • Review kernel code for similar race conditions.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-53239 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-53239 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-53239 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-53239 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 08, 2026

    Action Type Old Value New Value
    Added CWE CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.176 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.143 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.210 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.36 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.94 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.13 *cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.0 up to (excluding) 5.10.259
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/25c8c7fb3b0b9668c7d05e209f58c158d2b020c7 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/42827d03f8009a6a218bacab153e21f39d6a121c Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/7f2d76c9c03257c0782afef9d95321fa04096f60 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/88697cf980222d5906a37bf47662dac0732e2a0f Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/8fc536e9f6856230f19c7d13e71af064b6a77b22 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/b5316e2b8614a87d8736941972441cb47bfd4491 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/c4c1ea36d83bf3c4569468ca5b8b614fda1bf821 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/ec82ea4eb220164d854f8734ca5a35e23e577b94 Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 28, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 25, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': '8fc536e9f6856230f19c7d13e71af064b6a77b22', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': 'c4c1ea36d83bf3c4569468ca5b8b614fda1bf821', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': '25c8c7fb3b0b9668c7d05e209f58c158d2b020c7', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': '42827d03f8009a6a218bacab153e21f39d6a121c', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': '88697cf980222d5906a37bf47662dac0732e2a0f', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': 'b5316e2b8614a87d8736941972441cb47bfd4491', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': 'ec82ea4eb220164d854f8734ca5a35e23e577b94', 'versionType': 'git'}, {'status': 'affected', 'version': '6be3b0db6db82cf056a72cc18042048edd27f8ee', 'lessThan': '7f2d76c9c03257c0782afef9d95321fa04096f60', 'versionType': 'git'}], 'programFiles': ['net/xfrm/xfrm_policy.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.0'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.0', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.94', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.36', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.13', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/xfrm/xfrm_policy.c'], 'defaultStatus': 'affected'}]
    Added 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
    Added Reference https://git.kernel.org/stable/c/25c8c7fb3b0b9668c7d05e209f58c158d2b020c7
    Added Reference https://git.kernel.org/stable/c/42827d03f8009a6a218bacab153e21f39d6a121c
    Added Reference https://git.kernel.org/stable/c/7f2d76c9c03257c0782afef9d95321fa04096f60
    Added Reference https://git.kernel.org/stable/c/88697cf980222d5906a37bf47662dac0732e2a0f
    Added Reference https://git.kernel.org/stable/c/8fc536e9f6856230f19c7d13e71af064b6a77b22
    Added Reference https://git.kernel.org/stable/c/b5316e2b8614a87d8736941972441cb47bfd4491
    Added Reference https://git.kernel.org/stable/c/c4c1ea36d83bf3c4569468ca5b8b614fda1bf821
    Added Reference https://git.kernel.org/stable/c/ec82ea4eb220164d854f8734ca5a35e23e577b94
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.