{"id":"CVE-2026-31399","published":"2026-04-03T15:16:03Z","modified":"2026-11-05T21:33:49Z","title":"nvdimm/bus: Fix potential use after free in asynchronous initialization","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvdimm/bus: Fix potential use after free in asynchronous initialization\n\nDingisoul with KASAN reports a use after free if device_add() fails in\nnd_async_device_register().\n\nCommit b6eae0f61db2 (\"libnvdimm: Hold reference on parent while\nscheduling async init\") correctly added a reference on the parent device\nto be held until asynchronous initialization was complete.  However, if\ndevice_add() results in an allocation failure the ref count of the\ndevice drops to 0 prior to the parent pointer being accessed.  Thus\nresulting in use after free.\n\nThe bug bot AI correctly identified the fix.  Save a reference to the\nparent pointer to be used to drop the parent reference regardless of the\noutcome of device_add().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00124,"percentile":0.02201,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6fc36c2a925ceaba203eb13d75a8f0879a2c121b","tags":[]},{"url":"https://git.kernel.org/stable/c/a36cf138500e56f50db9f9a33222df6969b38326","tags":[]},{"url":"https://git.kernel.org/stable/c/9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d","tags":[]},{"url":"https://git.kernel.org/stable/c/e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e","tags":[]},{"url":"https://git.kernel.org/stable/c/2c638259ad750833fd46a0cf57672a618542d84c","tags":[]},{"url":"https://git.kernel.org/stable/c/a226e5b49e5fe8c98b14f8507de670189d191348","tags":[]},{"url":"https://git.kernel.org/stable/c/84af19855d1abdee3c9d57c0684e2868e391793c","tags":[]},{"url":"https://git.kernel.org/stable/c/a8aec14230322ed8f1e8042b6d656c1631d41163","tags":[]}],"priority":{"score":0.4,"factors":[{"name":"EPSS percentile","points":0.44}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 6fc36c2a925ceaba203eb13d75a8f0879a2c121b",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a36cf138500e56f50db9f9a33222df6969b38326",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 2c638259ad750833fd46a0cf57672a618542d84c",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a226e5b49e5fe8c98b14f8507de670189d191348",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < 84af19855d1abdee3c9d57c0684e2868e391793c",">= b6eae0f61db27748606cc00dafcfd1e2c032f0a5, < a8aec14230322ed8f1e8042b6d656c1631d41163","8954771abdea5c34280870e35592c7226a816d95","3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab"]},{"vendor":"Linux","product":"Linux","versions":["4.20"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T21:32:10.448630Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-18780","exploited":false,"provenance":"source"}}