# CVE-2026-139680: md/raid5: setup_conf: Fix null-ptr-def in error handling path

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:59.302Z
- Modified: 2026-11-30T14:19:56.013Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

md/raid5: setup_conf: Fix null-ptr-def in error handling path

For raid5 setup_conf, if an error(eg. bioset_init fails) happens before
'conf->mddev = mddev', following error handling path could trigger a
null-ptr-def problem:

 free_conf
  log_exit
   raid5_has_ppl
    test_bit(MD_HAS_PPL, &conf->mddev->flags) // conf->mddev is NULL !

Fix it by initializing conf->mddev in advance.

(As written by CVE List.)

## Affected

- Linux Linux: from 3418d036c81dcb604b7c7c71b209d5890a8418aa before 241748f206c38042dc289944bfa5527a2a714f6d; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before 6786c076ef4ff85b0ec9e9a9558153599b8316cd; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before a11f75a0b24b761d50cf5d422e6b0776a3ce9006; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before 0588354036c98f8d293f15462bbf0631b60bb9bb; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before 1acc56bd8896fe2bb1974fdc61398a4a40037a3e; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before e12457f33c3a5bd1270db85b05bf97a75c273680; from 3418d036c81dcb604b7c7c71b209d5890a8418aa before eba5f518701b1c7f2d883504f89c41611bd2de46; 4.12 (not affected: before 4.12; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/241748f206c38042dc289944bfa5527a2a714f6d>
- <https://git.kernel.org/stable/c/6786c076ef4ff85b0ec9e9a9558153599b8316cd>
- <https://git.kernel.org/stable/c/c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff>
- <https://git.kernel.org/stable/c/a11f75a0b24b761d50cf5d422e6b0776a3ce9006>
- <https://git.kernel.org/stable/c/0588354036c98f8d293f15462bbf0631b60bb9bb>
- <https://git.kernel.org/stable/c/1acc56bd8896fe2bb1974fdc61398a4a40037a3e>
- <https://git.kernel.org/stable/c/e12457f33c3a5bd1270db85b05bf97a75c273680>
- <https://git.kernel.org/stable/c/eba5f518701b1c7f2d883504f89c41611bd2de46>

## Sources

- CVE List: [CVE-2026-139680](https://www.cve.org/CVERecord?id=CVE-2026-139680), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139680](https://nvd.nist.gov/vuln/detail/CVE-2026-139680), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139680 · Whole record: https://cve.day/CVE-2026-139680.json · Rebuilt by cve.day 2026-11-30T14:33:17.475Z
