{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-31399",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-03-09T15:48:24.085Z",
        "datePublished": "2026-04-03T15:16:03.246Z",
        "dateUpdated": "2026-05-23T16:04:55.198Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-23T16:04:55.198Z"
            },
            "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()."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvdimm/bus.c"
                    ],
                    "versions": [
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "6fc36c2a925ceaba203eb13d75a8f0879a2c121b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "a36cf138500e56f50db9f9a33222df6969b38326",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "9a0fb16ba5b372465a3a1ecd761c6fa911a4ab4d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "e48bf8f1d2b12c1c5ba1f609edbd4cde5dadc20e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "2c638259ad750833fd46a0cf57672a618542d84c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "a226e5b49e5fe8c98b14f8507de670189d191348",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "84af19855d1abdee3c9d57c0684e2868e391793c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b6eae0f61db27748606cc00dafcfd1e2c032f0a5",
                            "lessThan": "a8aec14230322ed8f1e8042b6d656c1631d41163",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8954771abdea5c34280870e35592c7226a816d95",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "3e63a7f25cc85d3d3e174b9b0e3489ebb7eaf4ab",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1490de2bb0836fc0631c04d0559fdf81545b672f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e31a8418c8df7e6771414f99ed3d95ba8aca4e05",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4f1a55a4f990016406147cf3e0c9487bf83e50f0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4.4.164",
                            "lessThan": "4.5",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.137",
                            "lessThan": "4.10",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.81",
                            "lessThan": "4.15",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.18.19",
                            "lessThan": "4.19",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.2",
                            "lessThan": "4.20",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/nvdimm/bus.c"
                    ],
                    "versions": [
                        {
                            "version": "4.20",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.20",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.253",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.203",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.167",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.130",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.78",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.20",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.19.10",
                            "lessThanOrEqual": "6.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.0",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.10.253"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "5.15.203"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "6.1.167"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "6.6.130"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "6.12.78"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "6.18.20"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "6.19.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.20",
                                    "versionEndExcluding": "7.0"
                                },
                                {
                                    "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}