{"id":"CVE-2026-139680","aliases":["CVE-2026-139680"],"related":[],"kind":"vulnerability","state":"published","title":"md/raid5: setup_conf: Fix null-ptr-def in error handling path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: setup_conf: Fix null-ptr-def in error handling path\n\nFor raid5 setup_conf, if an error(eg. bioset_init fails) happens before\n'conf->mddev = mddev', following error handling path could trigger a\nnull-ptr-def problem:\n\n free_conf\n  log_exit\n   raid5_has_ppl\n    test_bit(MD_HAS_PPL, &conf->mddev->flags) // conf->mddev is NULL !\n\nFix it by initializing conf->mddev in advance.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: setup_conf: Fix null-ptr-def in error handling path\n\nFor raid5 setup_conf, if an error(eg. bioset_init fails) happens before\n'conf->mddev = mddev', following error handling path could trigger a\nnull-ptr-def problem:\n\n free_conf\n  log_exit\n   raid5_has_ppl\n    test_bit(MD_HAS_PPL, &conf->mddev->flags) // conf->mddev is NULL !\n\nFix it by initializing conf->mddev in advance.","source":"cvelist"}],"published":"2026-11-30T13:36:59.302Z","modified":"2026-11-30T14:19:56.013Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"241748f206c38042dc289944bfa5527a2a714f6d","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"6786c076ef4ff85b0ec9e9a9558153599b8316cd","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"a11f75a0b24b761d50cf5d422e6b0776a3ce9006","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"0588354036c98f8d293f15462bbf0631b60bb9bb","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"1acc56bd8896fe2bb1974fdc61398a4a40037a3e","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"e12457f33c3a5bd1270db85b05bf97a75c273680","status":"affected"},{"type":"git","introduced":"3418d036c81dcb604b7c7c71b209d5890a8418aa","fixed":"eba5f518701b1c7f2d883504f89c41611bd2de46","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/241748f206c38042dc289944bfa5527a2a714f6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6786c076ef4ff85b0ec9e9a9558153599b8316cd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a11f75a0b24b761d50cf5d422e6b0776a3ce9006","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0588354036c98f8d293f15462bbf0631b60bb9bb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1acc56bd8896fe2bb1974fdc61398a4a40037a3e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e12457f33c3a5bd1270db85b05bf97a75c273680","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eba5f518701b1c7f2d883504f89c41611bd2de46","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139680","url":"https://www.cve.org/CVERecord?id=CVE-2026-139680","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:59.302Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139680","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139680","licence":"Public domain","modified":"2026-11-30T14:19:56.013Z"}],"updatedAt":"2026-11-30T14:33:17.475Z","epss":{"score":0.00184,"percentile":0.08415,"date":"2026-12-01T12:00:22.000Z"}}