CVE-2026-31399

HIGH

nvdimm/bus: Fix potential use after free in asynchronous initialization

Title source: cna
STIX 2.1

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

Scores

CVSS v3 7.8
EPSS 0.0001
EPSS Percentile 3.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-416
Status published
Products (31)
Linux/Linux < 4.20
Linux/Linux 1490de2bb0836fc0631c04d0559fdf81545b672f
Linux/Linux 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab
Linux/Linux 4.14.81 - 4.15
Linux/Linux 4.18.19 - 4.19
Linux/Linux 4.19.2 - 4.20
Linux/Linux 4.20
Linux/Linux 4.4.164 - 4.5
Linux/Linux 4.9.137 - 4.10
Linux/Linux 4f1a55a4f990016406147cf3e0c9487bf83e50f0
... and 21 more
Published Apr 03, 2026
Tracked Since Apr 03, 2026