CVE-2026-139542
md: take reconfig_mutex when enabling PPL on an inactive array
Mitigation
- Upgrade Linux to 900bf42e0ff8009f66ffd4a679c56264957019dd or later.
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
Vulnerability facts
- Affected
- Linux >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 0d7551660320b9605f36140e1b5657fd4b8812ed; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < adfa3e105211e0099e1161afe487a1ca0622cdd1; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 0406e097bb3128290e8b757898864dba93a7a1be; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 3b3b14a11548b7b4183609900d9aa53020140f0f; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < f4d615026172f5c8ce49b14794c63b8b6223ec9a; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 54c543e9162c02a4c6fbbff260ac4d238c612865; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 28024177d04a3a76e193fbfb1abf064ad7b49d0a; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 900bf42e0ff8009f66ffd4a679c56264957019dd; Linux 4.12
- Fixed in
- Linux 0d7551660320b9605f36140e1b5657fd4b8812ed, Linux 0406e097bb3128290e8b757898864dba93a7a1be, Linux 3b3b14a11548b7b4183609900d9aa53020140f0f, Linux 54c543e9162c02a4c6fbbff260ac4d238c612865, Linux 28024177d04a3a76e193fbfb1abf064ad7b49d0a, Linux 900bf42e0ff8009f66ffd4a679c56264957019dd
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 0d7551660320b9605f36140e1b5657fd4b8812ed; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < adfa3e105211e0099e1161afe487a1ca0622cdd1; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 0406e097bb3128290e8b757898864dba93a7a1be; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 3b3b14a11548b7b4183609900d9aa53020140f0f; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < f4d615026172f5c8ce49b14794c63b8b6223ec9a; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 54c543e9162c02a4c6fbbff260ac4d238c612865; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 28024177d04a3a76e193fbfb1abf064ad7b49d0a; >= 664aed04446c7f653d8acbe2cdf7989f28238524, < 900bf42e0ff8009f66ffd4a679c56264957019dd | — | cvelist |
| Linux | 4.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
Other
- https://git.kernel.org/stable/c/0d7551660320b9605f36140e1b5657fd4b8812ed
- https://git.kernel.org/stable/c/adfa3e105211e0099e1161afe487a1ca0622cdd1
- https://git.kernel.org/stable/c/0406e097bb3128290e8b757898864dba93a7a1be
- https://git.kernel.org/stable/c/3b3b14a11548b7b4183609900d9aa53020140f0f
- https://git.kernel.org/stable/c/f4d615026172f5c8ce49b14794c63b8b6223ec9a
- https://git.kernel.org/stable/c/54c543e9162c02a4c6fbbff260ac4d238c612865
- https://git.kernel.org/stable/c/28024177d04a3a76e193fbfb1abf064ad7b49d0a
- https://git.kernel.org/stable/c/900bf42e0ff8009f66ffd4a679c56264957019dd
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |