# CVE-2026-139542: md: take reconfig\_mutex when enabling PPL on an inactive array

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

## Who should check

- Anyone running Linux \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 0d7551660320b9605f36140e1b5657fd4b8812ed; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< adfa3e105211e0099e1161afe487a1ca0622cdd1; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 0406e097bb3128290e8b757898864dba93a7a1be; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 3b3b14a11548b7b4183609900d9aa53020140f0f; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< f4d615026172f5c8ce49b14794c63b8b6223ec9a; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 54c543e9162c02a4c6fbbff260ac4d238c612865; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 28024177d04a3a76e193fbfb1abf064ad7b49d0a; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 900bf42e0ff8009f66ffd4a679c56264957019dd
- Anyone running Linux 4.12

## Description

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

md: take reconfig\_mutex when enabling PPL on an inactive array

consistency\_policy\_store() sets MD\_HAS\_PPL for an external-metadata array
that is not running yet, without holding reconfig\_mutex.  But -\>pers is
only assigned after pers-\>run() returns, so "not running" also covers an
md\_run() that is in progress under the lock.

If the write lands inside raid5\_run() after log\_init() has decided not to
set up PPL, or after a failed ppl\_init\_log() has cleared the flag, the
flag ends up set with conf-\>log\_private still NULL.  The next idle pass
of raid5d() then does:

  raid5d() -\> handle\_active\_stripes() -\> log\_flush\_stripe\_to\_raid()
    -\> ppl\_write\_stripe\_run()

and dereferences the NULL ppl\_conf:

  Oops: general protection fault, probably for non-canonical address
  0xdffffc0000000002
  KASAN: null-ptr-deref in range \[0x0000000000000010-0x0000000000000017\]
  RIP: 0010:ppl\_write\_stripe\_run+0x60/0x1320 drivers/md/raid5-ppl.c:538

Take reconfig\_mutex around the update and refuse it with -EBUSY once the
array is running, in which case -\>change\_consistency\_policy() is the
right interface.

## Affected and fixed versions

- Linux: \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 0d7551660320b9605f36140e1b5657fd4b8812ed; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< adfa3e105211e0099e1161afe487a1ca0622cdd1; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 0406e097bb3128290e8b757898864dba93a7a1be; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 3b3b14a11548b7b4183609900d9aa53020140f0f; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< f4d615026172f5c8ce49b14794c63b8b6223ec9a; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 54c543e9162c02a4c6fbbff260ac4d238c612865; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 28024177d04a3a76e193fbfb1abf064ad7b49d0a; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 900bf42e0ff8009f66ffd4a679c56264957019dd (cvelist)
- Linux: 4.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 900bf42e0ff8009f66ffd4a679c56264957019dd 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-139542. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139542.md
Affected: Linux >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 0d7551660320b9605f36140e1b5657fd4b8812ed; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < adfa3e105211e0099e1161afe487a1ca0622cdd1; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 0406e097bb3128290e8b757898864dba93a7a1be; >= 664aed04446c7f653d8acbe…
Fixed in: Linux 0d7551660320b9605f36140e1b5657fd4b8812ed, Linux 0406e097bb3128290e8b757898864dba93a7a1be, Linux 3b3b14a11548b7b4183609900d9aa53020140f0f, Linux 54c543e9162c02a4c6fbbff260ac4d238c612865, Linux 28024177d04a3a76e193fbfb1abf064ad7b49d0a, Linux 900bf42e0ff8009f66ffd4a679c56264957019dd

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 0d7551660320b9605f36140e1b5657fd4b8812ed; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< adfa3e105211e0099e1161afe487a1ca0622cdd1; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 0406e097bb3128290e8b757898864dba93a7a1be; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 3b3b14a11548b7b4183609900d9aa53020140f0f; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< f4d615026172f5c8ce49b14794c63b8b6223ec9a; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 54c543e9162c02a4c6fbbff260ac4d238c612865; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 28024177d04a3a76e193fbfb1abf064ad7b49d0a; \>= 664aed04446c7f653d8acbe2cdf7989f28238524, \< 900bf42e0ff8009f66ffd4a679c56264957019dd; Linux 4.12.

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

Yes. Fixed in Linux 0d7551660320b9605f36140e1b5657fd4b8812ed, Linux 0406e097bb3128290e8b757898864dba93a7a1be, Linux 3b3b14a11548b7b4183609900d9aa53020140f0f, Linux 54c543e9162c02a4c6fbbff260ac4d238c612865, Linux 28024177d04a3a76e193fbfb1abf064ad7b49d0a, Linux 900bf42e0ff8009f66ffd4a679c56264957019dd. Upgrade Linux to 900bf42e0ff8009f66ffd4a679c56264957019dd or later.

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

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/0d7551660320b9605f36140e1b5657fd4b8812ed>
- other: <https://git.kernel.org/stable/c/adfa3e105211e0099e1161afe487a1ca0622cdd1>
- other: <https://git.kernel.org/stable/c/0406e097bb3128290e8b757898864dba93a7a1be>
- other: <https://git.kernel.org/stable/c/3b3b14a11548b7b4183609900d9aa53020140f0f>
- other: <https://git.kernel.org/stable/c/f4d615026172f5c8ce49b14794c63b8b6223ec9a>
- other: <https://git.kernel.org/stable/c/54c543e9162c02a4c6fbbff260ac4d238c612865>
- other: <https://git.kernel.org/stable/c/28024177d04a3a76e193fbfb1abf064ad7b49d0a>
- other: <https://git.kernel.org/stable/c/900bf42e0ff8009f66ffd4a679c56264957019dd>

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

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