# CVE-2026-31399: nvdimm/bus: Fix potential use after free in asynchronous initialization

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-04-03T15:16:03.246Z
- **Modified:** 2026-11-05T22:18:28.600Z

## 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

## 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

- Linux: \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< 6fc36c2a925ceaba203eb13d75a8f0879a2c121b; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< a36cf138500e56f50db9f9a33222df6969b38326; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< 2c638259ad750833fd46a0cf57672a618542d84c; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< a226e5b49e5fe8c98b14f8507de670189d191348; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< 84af19855d1abdee3c9d57c0684e2868e391793c; \>= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, \< a8aec14230322ed8f1e8042b6d656c1631d41163; 8954771abdea5c34280870e35592c7226a816d95; 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab; … (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://git.kernel.org/stable/c/6fc36c2a925ceaba203eb13d75a8f0879a2c121b>
- patch: <https://git.kernel.org/stable/c/a36cf138500e56f50db9f9a33222df6969b38326>
- patch: <https://git.kernel.org/stable/c/9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d>
- patch: <https://git.kernel.org/stable/c/e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e>
- patch: <https://git.kernel.org/stable/c/2c638259ad750833fd46a0cf57672a618542d84c>
- patch: <https://git.kernel.org/stable/c/a226e5b49e5fe8c98b14f8507de670189d191348>
- patch: <https://git.kernel.org/stable/c/84af19855d1abdee3c9d57c0684e2868e391793c>
- patch: <https://git.kernel.org/stable/c/a8aec14230322ed8f1e8042b6d656c1631d41163>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31399>

HTML: <https://flawdb.com/CVE-2026-31399> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31399>
