{"api_version":"1","generated_at":"2026-04-19T01:12:28+00:00","cve":"CVE-2026-31399","urls":{"html":"https://cve.report/CVE-2026-31399","api":"https://cve.report/api/cve/CVE-2026-31399.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31399","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31399"},"summary":{"title":"nvdimm/bus: Fix potential use after free in asynchronous initialization","description":"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().","state":"PUBLISHED","assigner":"Linux","published_at":"2026-04-03 16:16:38","updated_at":"2026-04-18 09:16:29"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/6fc36c2a925ceaba203eb13d75a8f0879a2c121b","name":"https://git.kernel.org/stable/c/6fc36c2a925ceaba203eb13d75a8f0879a2c121b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a8aec14230322ed8f1e8042b6d656c1631d41163","name":"https://git.kernel.org/stable/c/a8aec14230322ed8f1e8042b6d656c1631d41163","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2c638259ad750833fd46a0cf57672a618542d84c","name":"https://git.kernel.org/stable/c/2c638259ad750833fd46a0cf57672a618542d84c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a226e5b49e5fe8c98b14f8507de670189d191348","name":"https://git.kernel.org/stable/c/a226e5b49e5fe8c98b14f8507de670189d191348","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/84af19855d1abdee3c9d57c0684e2868e391793c","name":"https://git.kernel.org/stable/c/84af19855d1abdee3c9d57c0684e2868e391793c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a36cf138500e56f50db9f9a33222df6969b38326","name":"https://git.kernel.org/stable/c/a36cf138500e56f50db9f9a33222df6969b38326","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d","name":"https://git.kernel.org/stable/c/9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e","name":"https://git.kernel.org/stable/c/e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-31399","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31399","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 6fc36c2a925ceaba203eb13d75a8f0879a2c121b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 a36cf138500e56f50db9f9a33222df6969b38326 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 2c638259ad750833fd46a0cf57672a618542d84c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 a226e5b49e5fe8c98b14f8507de670189d191348 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 84af19855d1abdee3c9d57c0684e2868e391793c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6eae0f61db27748606cc00dafcfd1e2c032f0a5 a8aec14230322ed8f1e8042b6d656c1631d41163 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8954771abdea5c34280870e35592c7226a816d95 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1490de2bb0836fc0631c04d0559fdf81545b672f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e31a8418c8df7e6771414f99ed3d95ba8aca4e05 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4f1a55a4f990016406147cf3e0c9487bf83e50f0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.20","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.20 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.253 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.203 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.167 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.130 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.78 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.20 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19.10 6.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"31399","cve":"CVE-2026-31399","epss":"0.000320000","percentile":"0.090980000","score_date":"2026-04-18","updated_at":"2026-04-19 00:10:43"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvdimm/bus.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"6fc36c2a925ceaba203eb13d75a8f0879a2c121b","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"a36cf138500e56f50db9f9a33222df6969b38326","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"2c638259ad750833fd46a0cf57672a618542d84c","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"a226e5b49e5fe8c98b14f8507de670189d191348","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"84af19855d1abdee3c9d57c0684e2868e391793c","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"lessThan":"a8aec14230322ed8f1e8042b6d656c1631d41163","status":"affected","version":"b6eae0f61db27748606cc00dafcfd1e2c032f0a5","versionType":"git"},{"status":"affected","version":"8954771abdea5c34280870e35592c7226a816d95","versionType":"git"},{"status":"affected","version":"3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab","versionType":"git"},{"status":"affected","version":"1490de2bb0836fc0631c04d0559fdf81545b672f","versionType":"git"},{"status":"affected","version":"e31a8418c8df7e6771414f99ed3d95ba8aca4e05","versionType":"git"},{"status":"affected","version":"4f1a55a4f990016406147cf3e0c9487bf83e50f0","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvdimm/bus.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.20"},{"lessThan":"4.20","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.253","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.203","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.167","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.130","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.78","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.20","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.253","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.203","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.167","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.130","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.78","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.20","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.10","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0","versionStartIncluding":"4.20","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.164","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.137","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14.81","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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()."}],"providerMetadata":{"dateUpdated":"2026-04-18T08:59:18.870Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/6fc36c2a925ceaba203eb13d75a8f0879a2c121b"},{"url":"https://git.kernel.org/stable/c/a36cf138500e56f50db9f9a33222df6969b38326"},{"url":"https://git.kernel.org/stable/c/9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d"},{"url":"https://git.kernel.org/stable/c/e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e"},{"url":"https://git.kernel.org/stable/c/2c638259ad750833fd46a0cf57672a618542d84c"},{"url":"https://git.kernel.org/stable/c/a226e5b49e5fe8c98b14f8507de670189d191348"},{"url":"https://git.kernel.org/stable/c/84af19855d1abdee3c9d57c0684e2868e391793c"},{"url":"https://git.kernel.org/stable/c/a8aec14230322ed8f1e8042b6d656c1631d41163"}],"title":"nvdimm/bus: Fix potential use after free in asynchronous initialization","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-31399","datePublished":"2026-04-03T15:16:03.246Z","dateReserved":"2026-03-09T15:48:24.085Z","dateUpdated":"2026-04-18T08:59:18.870Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-03 16:16:38","lastModifiedDate":"2026-04-18 09:16:29","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"31399","Ordinal":"1","Title":"nvdimm/bus: Fix potential use after free in asynchronous initial","CVE":"CVE-2026-31399","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"31399","Ordinal":"1","NoteData":"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().","Type":"Description","Title":"nvdimm/bus: Fix potential use after free in asynchronous initial"}]}}}