
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
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."