CVE-2026-31399
nvdimm/bus: Fix potential use after free in asynchronous initialization
Reported by linux · Published April 3, 2026
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().
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| kernel6.18-libbpf-devel | Amazon Linux | 1:6.18.20-20.229.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.20-20.229.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.20-20.229.amzn2023 |
| kernel-libbpf | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.20-20.229.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| linux_kernel | linux | 6.19.10, 6.18.20, 6.12.78, 6.6.130, 6.1.167, 5.15.203, 5.10.253, 4.19, 4.15, 4.10, 4.5 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b6eae0f61db27748606cc00dafcfd1e2c032f0a5, b6eae0f61db27748606cc00dafcfd1e2c032f0a5, b6eae0f61db27748606cc00dafcfd1e2c032f0a5 |
| Linux | Linux | 4.20, 0, 5.10.253 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-libbpf-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| linux | linux_kernel | 4.20, 4.20, 4.20 |
| amazon:2023 | kernel-livepatch-6.18.20-20.229 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel | 0 |
…and 26 more
Timeline
- Apr 3, 2026 CVE Published
- Apr 3, 2026 PoC Published
- May 18, 2026 EPSS Score (26 in total, the first dated here)
- Jun 2, 2026 Security Advisory (100 in total, the first dated here)
- Jun 13, 2026 Coalition ESS Score
- Aug 9, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (93 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-31399
vulnetix vdb fixes CVE-2026-31399
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31399/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart