# CVE-2026-142866: md/raid5: fix NULL pointer dereference in raid5\_free\_percpu

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:21:06.170Z
- **Modified:** 2026-12-03T04:18:24.280Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who can trigger an allocation failure during RAID5 setup can cause a NULL pointer dereference and kernel panic in the Linux kernel's md/raid5 driver.

## Who should check

- Anyone running Linux \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 408363a4fa9e377b5c9aed07543ffff88a18a6e4; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< d9128e169d36f8e57a55b2277022e596f9e13730; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< febe0bf350cbf38bb75241234aea2948b7f2eb90; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< b643d32dfd3cfeac237eb9795dc795f766181342; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 9410f368f1b70a564950d714ba3b9b145eaa93dd; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 45ceac48961d92e1d056457a5690cd95d2f25450; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 8b8435630e45636664fb9bb0da7f0822be955464; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 41742e35268d6a45161b187f51f42bc2ade14d0d
- Anyone running Linux 4.9

## Description

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

md/raid5: fix NULL pointer dereference in raid5\_free\_percpu

If cpuhp\_state\_add\_instance() fails in raid5\_alloc\_percpu() (e.g., the
startup callback raid456\_cpu\_up\_prepare fails due to an allocation
failure), conf-\>node is never added to the cpuhp instance list and
its pprev remains NULL (from kzalloc initialization).

When setup\_conf() then jumps to abort, free\_conf() calls
raid5\_free\_percpu(), which checks conf-\>percpu (non-NULL, since it was
allocated before the cpuhp failure) and proceeds to call
cpuhp\_state\_remove\_instance().  This calls hlist\_del() on the unhashed
node, which dereferences node-\>pprev (NULL), causing a kernel panic.

Guard the removal with hlist\_unhashed\_lockless() so that the cpuhp
instance is only removed if it was actually added.  The lockless variant
uses READ\_ONCE() for the pprev read, which is safe here because the
actual removal is synchronized by cpuhp\_state\_mutex inside
cpuhp\_state\_remove\_instance().

## Affected and fixed versions

- Linux: \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 408363a4fa9e377b5c9aed07543ffff88a18a6e4; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< d9128e169d36f8e57a55b2277022e596f9e13730; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< febe0bf350cbf38bb75241234aea2948b7f2eb90; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< b643d32dfd3cfeac237eb9795dc795f766181342; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 9410f368f1b70a564950d714ba3b9b145eaa93dd; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 45ceac48961d92e1d056457a5690cd95d2f25450; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 8b8435630e45636664fb9bb0da7f0822be955464; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 41742e35268d6a45161b187f51f42bc2ade14d0d (cvelist)
- Linux: 4.9 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-142866.md
Affected: Linux >= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, < 408363a4fa9e377b5c9aed07543ffff88a18a6e4; >= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, < d9128e169d36f8e57a55b2277022e596f9e13730; >= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, < febe0bf350cbf38bb75241234aea2948b7f2eb90; >= 29c6d1bbd7a2cd88a197ea7…
Fixed in: Linux 408363a4fa9e377b5c9aed07543ffff88a18a6e4, Linux 9410f368f1b70a564950d714ba3b9b145eaa93dd, Linux 45ceac48961d92e1d056457a5690cd95d2f25450, Linux 8b8435630e45636664fb9bb0da7f0822be955464, Linux 41742e35268d6a45161b187f51f42bc2ade14d0d

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 408363a4fa9e377b5c9aed07543ffff88a18a6e4; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< d9128e169d36f8e57a55b2277022e596f9e13730; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< febe0bf350cbf38bb75241234aea2948b7f2eb90; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< b643d32dfd3cfeac237eb9795dc795f766181342; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 9410f368f1b70a564950d714ba3b9b145eaa93dd; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 45ceac48961d92e1d056457a5690cd95d2f25450; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 8b8435630e45636664fb9bb0da7f0822be955464; \>= 29c6d1bbd7a2cd88a197ea7cef171f616e198526, \< 41742e35268d6a45161b187f51f42bc2ade14d0d; Linux 4.9.

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

Yes. Fixed in Linux 408363a4fa9e377b5c9aed07543ffff88a18a6e4, Linux 9410f368f1b70a564950d714ba3b9b145eaa93dd, Linux 45ceac48961d92e1d056457a5690cd95d2f25450, Linux 8b8435630e45636664fb9bb0da7f0822be955464, Linux 41742e35268d6a45161b187f51f42bc2ade14d0d. Upgrade Linux to 41742e35268d6a45161b187f51f42bc2ade14d0d or later.

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

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/408363a4fa9e377b5c9aed07543ffff88a18a6e4>
- other: <https://git.kernel.org/stable/c/d9128e169d36f8e57a55b2277022e596f9e13730>
- other: <https://git.kernel.org/stable/c/febe0bf350cbf38bb75241234aea2948b7f2eb90>
- other: <https://git.kernel.org/stable/c/b643d32dfd3cfeac237eb9795dc795f766181342>
- other: <https://git.kernel.org/stable/c/9410f368f1b70a564950d714ba3b9b145eaa93dd>
- other: <https://git.kernel.org/stable/c/45ceac48961d92e1d056457a5690cd95d2f25450>
- other: <https://git.kernel.org/stable/c/8b8435630e45636664fb9bb0da7f0822be955464>
- other: <https://git.kernel.org/stable/c/41742e35268d6a45161b187f51f42bc2ade14d0d>

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

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