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

Published Apr 3, 2026
·
Updated

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 deviceadd() fails in ndasyncdeviceregister().

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 deviceadd() 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 deviceadd().

Affected Software

16 affected components
The Linux Foundation Linux Kernel
Linux Linux kernel>=4.4.164<4.5
Linux Linux kernel>=4.9.137<4.10
Linux Linux kernel>=4.14.81<4.15
Linux Linux kernel>=4.18.19<4.19
Linux Linux kernel>=4.19.2<5.10.253
Linux Linux kernel>=5.11<5.15.203
Linux Linux kernel>=5.16<6.1.167
Linux Linux kernel>=6.2<6.6.130
Linux Linux kernel>=6.7<6.12.78
Linux Linux kernel>=6.13<6.18.20
Linux Linux kernel>=6.19<6.19.10
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4

Event History

Apr 3, 2026
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
Description
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31399?

CVE-2026-31399 has a severity rating of high with a CVSS score of 7.8.

2

How do I fix CVE-2026-31399?

To fix CVE-2026-31399, update to the latest version of the Linux kernel that includes the patch for this vulnerability.

3

What type of vulnerability is CVE-2026-31399?

CVE-2026-31399 is classified as a Use After Free vulnerability.

4

How does CVE-2026-31399 affect the Linux kernel?

CVE-2026-31399 can lead to potential exploitation due to improper handling of device initialization in the Linux kernel.

5

When was CVE-2026-31399 published?

CVE-2026-31399 was published on April 3, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203