
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31406 is a use-after-free (expired pointer dereference) vulnerability in the Linux kernel's xfrm (IPsec transform) subsystem, specifically within the xfrm_nat_keepalive_net_fini() function. It affects Linux kernel versions 6.11 through 6.12.79, 6.13 through 6.18.20, 6.19 through 6.19.10, and release candidates 7.0-rc1 through 7.0-rc5. The vulnerability was published on April 6, 2026, and carries a CVSS v3.1 base score of 7.8 (High) (Github Advisory, Red Hat Bugzilla).
The root cause is a race condition (CWE-825: Expired Pointer Dereference) during network namespace teardown. When xfrm_nat_keepalive_net_fini() calls cancel_delayed_work_sync() to cancel nat_keepalive_work, the subsequent xfrm_state_fini() call flushes remaining IPsec states via __xfrm_state_delete(), which in turn calls xfrm_nat_keepalive_state_updated() — inadvertently re-scheduling nat_keepalive_work. In a two-round cleanup_net() scenario, the network namespace memory (net) is freed by kmem_cache_free() in Round 2 while nat_keepalive_work may still execute on that freed memory on another CPU, constituting a use-after-free condition. The fix replaces cancel_delayed_work_sync() with disable_delayed_work_sync() to prevent re-scheduling after cancellation (Github Advisory).
Successful exploitation of this race condition can result in kernel crashes, memory corruption, or potentially arbitrary code execution depending on memory layout and heap state at the time of exploitation. All three security dimensions are rated High — confidentiality, integrity, and availability — as kernel-level memory corruption can expose sensitive kernel data, corrupt system state, and cause denial of service via kernel panic. The vulnerability requires local access with low privileges, limiting its scope to systems where an attacker already has a foothold, but it could enable privilege escalation or persistent kernel compromise (Github Advisory, Feedly).
Upgrade the Linux kernel to a patched stable version: 6.12.80, 6.18.21, 6.19.11, or 7.0-rc6 and later. Specific upstream fix commits are: 32d0f44c2f14d60fe8e920e69a28c11051543ec1, 2255ed6adbc3100d2c4a83abd9d0396d04b87792, 21f2fc49ca6faa393c31da33b8a4e6c41fc84c13, and daf8e3b253aa760ff9e96c7768a464bc1d6b3c90. Distribution-specific patches are available from SUSE (SUSE-SU-2026:21834-1, SUSE-SU-2026:21975-1, SUSE-SU-2026:21973-1) and Amazon Linux 2023 (ALAS2023-2026-1646, ALAS2023-2026-1746). As a temporary workaround, limit operations that create and destroy network namespaces on systems heavily using IPsec (Github Advisory, Red Hat Bugzilla, SUSE Advisory).
The vulnerability received routine coverage from Linux distribution security teams, with SUSE, Amazon Linux, Debian, and Yocto Project all issuing advisories or security messages. Tenable published multiple Nessus detection plugins (305061, 312152, 316948, 318102, 318240, 319659) and a pipeline issue tracking entry. No notable independent researcher commentary or significant social media discussion beyond automated CVE notification accounts was observed (SUSE Advisory, Amazon Linux Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."