CVE-2026-31406
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management