VDB

CVE-2026-31399

CVE-2026-31399 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.12-modules-extra-commonAmazon Linux1:6.12.79-101.147.amzn2023
kernel6.18-libbpf-develAmazon Linux1:6.18.20-20.229.amzn2023
perf6.18Amazon Linux1:6.18.20-20.229.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.79-101.147.amzn2023
python3-perfAmazon Linux1:6.1.168-202.320.amzn2023
kernel6.18-headersAmazon Linux1:6.18.20-20.229.amzn2023
kernel-libbpfAmazon Linux1:6.1.168-202.320.amzn2023
bpftoolAmazon Linux1:6.1.168-202.320.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.20-20.229.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.79-101.147.amzn2023
linux_kernellinux6.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

VendorProductVersions
LinuxLinuxb6eae0f61db27748606cc00dafcfd1e2c032f0a5, b6eae0f61db27748606cc00dafcfd1e2c032f0a5, b6eae0f61db27748606cc00dafcfd1e2c032f0a5
LinuxLinux4.20, 0, 5.10.253
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.18-libbpf-devel0
amazon:2023perf6.180
amazon:2023kernel6.12-libbpf-devel0
amazon:2023python3-perf0
amazon:2023kernel6.18-headers0
amazon:2023kernel-libbpf0
amazon:2023bpftool0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.12-modules-extra0
linuxlinux_kernel4.20, 4.20, 4.20
amazon:2023kernel-livepatch-6.18.20-20.2290
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools-devel0
amazon:2023perf0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›