CVE-2026-31399
nvdimm/bus: Fix potential use after free in asynchronous initialization
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 6fc36c2a925ceaba203eb13d75a8f0879a2c121b; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a36cf138500e56f50db9f9a33222df6969b38326; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 2c638259ad750833fd46a0cf57672a618542d84c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a226e5b49e5fe8c98b14f8507de670189d191348; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 84af19855d1abdee3c9d57c0684e2868e391793c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a8aec14230322ed8f1e8042b6d656c1631d41163; 8954771abdea5c34280870e35592c7226a816d95; 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab; …
- Anyone running Linux 4.20
Vulnerability facts
- Affected
- Linux >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 6fc36c2a925ceaba203eb13d75a8f0879a2c121b; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a36cf138500e56f50db9f9a33222df6969b38326; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 2c638259ad750833fd46a0cf57672a618542d84c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a226e5b49e5fe8c98b14f8507de670189d191348; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 84af19855d1abdee3c9d57c0684e2868e391793c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a8aec14230322ed8f1e8042b6d656c1631d41163; 8954771abdea5c34280870e35592c7226a816d95; 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab; …; Linux 4.20
- Fixed in
- Linux 6fc36c2a925ceaba203eb13d75a8f0879a2c121b, Linux 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d, Linux 2c638259ad750833fd46a0cf57672a618542d84c, Linux 84af19855d1abdee3c9d57c0684e2868e391793c
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 5, 2026-11-26)
- CWE
- CWE-416
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: nvdimm/bus: Fix potential use after free in asynchronous initialization Dingisoul with KASAN reports a use after free if device_add() fails in nd_async_device_register(). Commit b6eae0f61db2 ("libnvdimm: Hold reference on parent while scheduling async init") correctly added a reference on the parent device to be held until asynchronous initialization was complete. However, if device_add() results in an allocation failure the ref count of the device drops to 0 prior to the parent pointer being accessed. Thus resulting in use after free. The bug bot AI correctly identified the fix. Save a reference to the parent pointer to be used to drop the parent reference regardless of the outcome of device_add().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 6fc36c2a925ceaba203eb13d75a8f0879a2c121b; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a36cf138500e56f50db9f9a33222df6969b38326; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 2c638259ad750833fd46a0cf57672a618542d84c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a226e5b49e5fe8c98b14f8507de670189d191348; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 84af19855d1abdee3c9d57c0684e2868e391793c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a8aec14230322ed8f1e8042b6d656c1631d41163; 8954771abdea5c34280870e35592c7226a816d95; 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab; … | — | cvelist |
| Linux | 4.20 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-31399. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-31399.md Affected: Linux >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 6fc36c2a925ceaba203eb13d75a8f0879a2c121b; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a36cf138500e56f50db9f9a33222df6969b38326; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d; >= b6eae0f61db27748606cc00… Fixed in: Linux 6fc36c2a925ceaba203eb13d75a8f0879a2c121b, Linux 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d, Linux 2c638259ad750833fd46a0cf57672a618542d84c, Linux 84af19855d1abdee3c9d57c0684e2868e391793c Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/6fc36c2a925ceaba203eb13d75a8f0879a2c121b
- https://git.kernel.org/stable/c/a36cf138500e56f50db9f9a33222df6969b38326
- https://git.kernel.org/stable/c/9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d
- https://git.kernel.org/stable/c/e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e
- https://git.kernel.org/stable/c/2c638259ad750833fd46a0cf57672a618542d84c
- https://git.kernel.org/stable/c/a226e5b49e5fe8c98b14f8507de670189d191348
- https://git.kernel.org/stable/c/84af19855d1abdee3c9d57c0684e2868e391793c
- https://git.kernel.org/stable/c/a8aec14230322ed8f1e8042b6d656c1631d41163
FAQ
Is CVE-2026-31399 being exploited?
There is no confirmed exploitation: CVE-2026-31399 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-31399?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-31399?
Linux >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 6fc36c2a925ceaba203eb13d75a8f0879a2c121b; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a36cf138500e56f50db9f9a33222df6969b38326; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 2c638259ad750833fd46a0cf57672a618542d84c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a226e5b49e5fe8c98b14f8507de670189d191348; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 84af19855d1abdee3c9d57c0684e2868e391793c; >= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a8aec14230322ed8f1e8042b6d656c1631d41163; 8954771abdea5c34280870e35592c7226a816d95; 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab; …; Linux 4.20.
Is there a fix for CVE-2026-31399?
Yes. Fixed in Linux 6fc36c2a925ceaba203eb13d75a8f0879a2c121b, Linux 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d, Linux 2c638259ad750833fd46a0cf57672a618542d84c, Linux 84af19855d1abdee3c9d57c0684e2868e391793c. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-31399?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.