Junglewise Threat Intelligence

CVE-2026-53239: Linux Kernel use-after-free in xfrm_policy_bysel_ctx

CVE-2026-53239 · Severity: info · CVSS 0 · Published 2026-06-25

Technologies: Linux. Vendors: Linux.

Executive brief

A race condition vulnerability was identified in the Linux kernel's IPsec (XFRM) subsystem. This flaw could allow a local attacker to cause a system crash or potentially execute unauthorized code by exploiting a 'use-after-free' condition during the deletion of network security policies. The issue occurs when the system attempts to access memory that has already been released during a concurrent network configuration update.

Technical details

A use-after-free (UAF) vulnerability exists in the Linux kernel's XFRM subsystem due to a race condition between policy deletion (XFRM_MSG_DELPOLICY) and hash rebuilding (XFRM_MSG_NEWSPDINFO). In xfrm_policy_bysel_ctx(), the xfrm_policy_lock is dropped before calling xfrm_policy_inexact_prune_bin(bin). During this window, a concurrent xfrm_hash_rebuild() can trigger __xfrm_policy_inexact_flush(), which frees the 'bin' structure via kfree_rcu(). Subsequent access to the freed 'bin' results in a UAF. The fix involves moving the pruning logic inside the critical section protected by xfrm_policy_lock. This affects the net/xfrm/xfrm_policy.c component.

Affected products

  • Linux Linux 6be3b0db6db8 to 7f2d76c9c032

Timeline

  • 2026-06-02: other: Vulnerability fixed in upstream kernel code
  • 2026-06-25: advisory: CVE-2026-53239 published

References