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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:59.302Z
- **Modified:** 2026-11-30T14:19:56.013Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker with local conditions can trigger a null pointer dereference in the Linux kernel's md/raid5 RAID setup error-handling path.

## Who should check

- Anyone running Linux \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 241748f206c38042dc289944bfa5527a2a714f6d; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 6786c076ef4ff85b0ec9e9a9558153599b8316cd; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< a11f75a0b24b761d50cf5d422e6b0776a3ce9006; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 0588354036c98f8d293f15462bbf0631b60bb9bb; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 1acc56bd8896fe2bb1974fdc61398a4a40037a3e; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< e12457f33c3a5bd1270db85b05bf97a75c273680; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< eba5f518701b1c7f2d883504f89c41611bd2de46
- Anyone running Linux 4.12

## 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.

## Affected and fixed versions

- Linux: \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 241748f206c38042dc289944bfa5527a2a714f6d; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 6786c076ef4ff85b0ec9e9a9558153599b8316cd; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< a11f75a0b24b761d50cf5d422e6b0776a3ce9006; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 0588354036c98f8d293f15462bbf0631b60bb9bb; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 1acc56bd8896fe2bb1974fdc61398a4a40037a3e; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< e12457f33c3a5bd1270db85b05bf97a75c273680; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< eba5f518701b1c7f2d883504f89c41611bd2de46 (cvelist)
- Linux: 4.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139680. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139680.md
Affected: Linux >= 3418d036c81dcb604b7c7c71b209d5890a8418aa, < 241748f206c38042dc289944bfa5527a2a714f6d; >= 3418d036c81dcb604b7c7c71b209d5890a8418aa, < 6786c076ef4ff85b0ec9e9a9558153599b8316cd; >= 3418d036c81dcb604b7c7c71b209d5890a8418aa, < c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff; >= 3418d036c81dcb604b7c7c7…
Fixed in: Linux 241748f206c38042dc289944bfa5527a2a714f6d, Linux 6786c076ef4ff85b0ec9e9a9558153599b8316cd, Linux 0588354036c98f8d293f15462bbf0631b60bb9bb, Linux 1acc56bd8896fe2bb1974fdc61398a4a40037a3e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139680 being exploited?

There is no confirmed exploitation: CVE-2026-139680 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139680?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139680?

Linux \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 241748f206c38042dc289944bfa5527a2a714f6d; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 6786c076ef4ff85b0ec9e9a9558153599b8316cd; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< c9fcd1bd5dc42f1cb2af5c08ea42261f383fd8ff; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< a11f75a0b24b761d50cf5d422e6b0776a3ce9006; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 0588354036c98f8d293f15462bbf0631b60bb9bb; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< 1acc56bd8896fe2bb1974fdc61398a4a40037a3e; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< e12457f33c3a5bd1270db85b05bf97a75c273680; \>= 3418d036c81dcb604b7c7c71b209d5890a8418aa, \< eba5f518701b1c7f2d883504f89c41611bd2de46; Linux 4.12.

### Is there a fix for CVE-2026-139680?

Yes. Fixed in Linux 241748f206c38042dc289944bfa5527a2a714f6d, Linux 6786c076ef4ff85b0ec9e9a9558153599b8316cd, Linux 0588354036c98f8d293f15462bbf0631b60bb9bb, Linux 1acc56bd8896fe2bb1974fdc61398a4a40037a3e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139680?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139680>

HTML: <https://flawdb.com/CVE-2026-139680> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139680>
