Junglewise Threat Intelligence

CVE-2026-46116: Linux Kernel use-after-free in XFRM state deletion

CVE-2026-46116 · Severity: info · CVSS 7.8 · Published 2026-05-28

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's IPsec (XFRM) subsystem could allow a local attacker to cause a system crash or potentially execute unauthorized code. The issue stems from how the kernel manages memory when deleting network security states, leading to a 'use-after-free' condition. This could disrupt network operations or allow an attacker to gain elevated privileges on the affected system.

Technical details

A slab-use-after-free vulnerability exists in the Linux kernel's XFRM subsystem within the __xfrm_state_delete function. The root cause is an inconsistent state check where the kernel used value-based predicates (checking x->km.seq or x->id.spi) instead of list-based checks (hlist_unhashed) when unhalshing RCU-protected lists. Under heavy load, a race condition allows a path to observe a non-zero value outside of the xfrm_state_lock, leading to inconsistent list deletion or double-deletion (writing through LIST_POISON). This can be triggered locally to cause a kernel panic or potentially achieve arbitrary code execution. The fix replaces hlist_del_rcu with hlist_del_init_rcu and implements proper hlist_unhashed checks to ensure deletion is idempotent and tracks actual list state.

Affected products

  • Linux Linux Kernel 6.12.47 and earlier versions including torvalds/master

Timeline

  • 2026-04-29: patched: Initial patch submitted to the Linux kernel tree.
  • 2026-05-28: advisory: CVE-2026-46116 published.

References