CVE-2026-31399
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2026-31399 is a use-after-free vulnerability in the Linux kernel's NVDIMM (Non-Volatile Dual In-line Memory Module) bus subsystem, specifically in the nd_async_device_register() function during asynchronous device initialization. When device_add() fails due to an allocation error, the device's reference count drops to zero before the parent device pointer is accessed, resulting in a use-after-free condition. The vulnerability was disclosed on April 3, 2026, and affects numerous Linux kernel stable branches from 4.4.x through 6.19.x. It carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory, Feedly).

Technical details

The root cause is classified as CWE-416 (Use After Free). The vulnerability originates from an incomplete fix in commit b6eae0f61db2 ("libnvdimm: Hold reference on parent while scheduling async init"), which added a reference on the parent device to be held during asynchronous initialization but failed to account for the case where device_add() itself fails — causing the device ref count to reach zero and the parent pointer to be freed before it is dereferenced. The attack vector is local (AV:L) and requires low privileges (PR:L), with no user interaction needed. The fix saves a reference to the parent pointer before calling device_add() so the parent reference can be properly dropped regardless of the outcome (GitHub Advisory).

Impact

Successful exploitation allows a local unprivileged attacker to trigger memory corruption via the use-after-free condition, potentially enabling arbitrary code execution with kernel privileges. The vulnerability has high confidentiality, integrity, and availability impact, meaning an attacker could read sensitive kernel memory, corrupt kernel data structures, or crash the system. Systems with NVDIMM hardware or kernel modules loaded for persistent memory support are at greatest risk (Feedly, GitHub Advisory).

Mitigation and workarounds

Patches have been released across multiple Linux kernel stable branches. Users should update to the following fixed versions or later: 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.78, 6.18.20, or 6.19.10. Patches are also available for older LTS branches (4.4.x, 4.9.x, 4.14.x, 4.18.x, 4.19.x). Downstream distributions including Amazon Linux 2023, Debian, and Alibaba Cloud Linux have issued security advisories incorporating these fixes. As a workaround where patching is not immediately possible, disabling or unloading the libnvdimm kernel module on systems that do not use NVDIMM hardware can reduce exposure (GitHub Advisory, Amazon Linux Advisory).

Community reactions

The vulnerability was noted in the Linux kernel CVE announcement mailing list and picked up by standard vulnerability tracking feeds shortly after disclosure. The Yocto Project security mailing list issued multiple advisories tracking the fix across affected kernel versions. No significant independent researcher commentary or media coverage beyond routine vulnerability tracking has been observed (Yocto Security List).

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