# CVE-2026-139539: In the Linux kernel, the following vulnerability has been resolved: md: Fix the null-ptr-deref of 'mddev-\>private' whil…

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

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 06fabe491efbb533d2023f38556ae414bb7bf828; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 292435bd67e2e91483d1ba2427a21edf528c9e3c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9768d577d9a417b9437b9cee504b771f219d3552; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4c90b76e0198deb89376988daa8d96b48bea7fcf
- Anyone running Linux 2.6.12

## Description

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

md: Fix the null-ptr-deref of 'mddev-\>private' while submitting IO

Concurrent processes md\_stop and IO submission can trigger a NULL
pointer dereference of mddev-\>private:

 BUG: kernel NULL pointer dereference, address: 0000000000000070
 RIP: 0010:\_wait\_barrier+0x2f/0x250
 Call Trace:
  raid1\_make\_request+0x150/0xf50
  md\_handle\_request+0x104/0x530
  md\_submit\_bio+0x76/0x130
  submit\_bio+0xdd/0x250
  submit\_bio\_wait+0x1f/0x40
  \_\_blkdev\_direct\_IO\_simple+0x1f6/0x370
  blkdev\_write\_iter+0x3b2/0x520
  ksys\_write+0x7d/0x190

One process can submit I/O through an open file while a forked process
uses the same file to issue STOP\_ARRAY. The opener check permits this
because md\_open() was called only once. do\_md\_stop() can then clear
mddev-\>private while the I/O is entering the personality make\_request
callback.

This affects raid0, raid1, raid10, and raid5. Suspend STOP\_ARRAY while
holding the reconfiguration lock so teardown waits for active\_io
references to drain. Fail I/O in md\_handle\_request() if mddev-\>pers is
NULL after the array resumes.

The sysfs stopping paths are protected by
mddev\_set\_closing\_and\_sync\_blockdev(). Apply that protection to both
clear and inactive transitions even when the array is read-only.
dm-raid teardown is already invoked with the device suspended.

Fetch a reproducer in
https://bugzilla.kernel.org/show\_bug.cgi?id=222020

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 06fabe491efbb533d2023f38556ae414bb7bf828; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 292435bd67e2e91483d1ba2427a21edf528c9e3c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9768d577d9a417b9437b9cee504b771f219d3552; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4c90b76e0198deb89376988daa8d96b48bea7fcf (nvd)
- Linux: 2.6.12 (nvd)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 4c90b76e0198deb89376988daa8d96b48bea7fcf or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-139539.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 06fabe491efbb533d2023f38556ae414bb7bf828; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 292435bd67e2e91483d1ba2427a21edf528c9e3c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9768d577d9a417b9437b9cee504b771f219d3552; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 06fabe491efbb533d2023f38556ae414bb7bf828, Linux 292435bd67e2e91483d1ba2427a21edf528c9e3c, Linux 9768d577d9a417b9437b9cee504b771f219d3552, Linux 4c90b76e0198deb89376988daa8d96b48bea7fcf

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-139539 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 06fabe491efbb533d2023f38556ae414bb7bf828; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 292435bd67e2e91483d1ba2427a21edf528c9e3c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9768d577d9a417b9437b9cee504b771f219d3552; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4c90b76e0198deb89376988daa8d96b48bea7fcf; Linux 2.6.12.

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

Yes. Fixed in Linux 06fabe491efbb533d2023f38556ae414bb7bf828, Linux 292435bd67e2e91483d1ba2427a21edf528c9e3c, Linux 9768d577d9a417b9437b9cee504b771f219d3552, Linux 4c90b76e0198deb89376988daa8d96b48bea7fcf. Upgrade Linux to 4c90b76e0198deb89376988daa8d96b48bea7fcf or later.

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

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/06fabe491efbb533d2023f38556ae414bb7bf828>
- other: <https://git.kernel.org/stable/c/292435bd67e2e91483d1ba2427a21edf528c9e3c>
- other: <https://git.kernel.org/stable/c/4c90b76e0198deb89376988daa8d96b48bea7fcf>
- other: <https://git.kernel.org/stable/c/9768d577d9a417b9437b9cee504b771f219d3552>

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

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