CVE-2026-142866 md/raid5: fix NULL pointer dereference in raid5_free_percpu
linux linux: no CVSS score yet. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.
On this page
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().
- EPSS
- 0.4% estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 5.10.275
- Linux Linux: fixed in 5.15.226
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.117
- Linux Linux: fixed in 6.18.63
- Linux Linux: fixed in 7.3.4
- Linux Linux: fixed in 7.4-rc1
- Debian: fixed package versions per release
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142866 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142866?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142866?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142866 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | 4.9 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.10 | 5.10.275 |
| Linux | 5.15 | 5.15.226 |
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.117 |
| Linux | 6.18 | 6.18.63 |
| Linux | 7.3 | 7.3.4 |
| Linux | later releases | 7.4-rc1 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | linux | no fix listed | DEBIAN-CVE-2026-142866 |
| Debian | 13 | linux | 6.12.117-1 | DEBIAN-CVE-2026-142866 |
| Debian | 14 | linux | 7.3.4-1 | DEBIAN-CVE-2026-142866 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
References
- https://git.kernel.org/stable/c/408363a4fa9e377b5c9aed07543ffff88a18a6e4
- https://git.kernel.org/stable/c/41742e35268d6a45161b187f51f42bc2ade14d0d
- https://git.kernel.org/stable/c/45ceac48961d92e1d056457a5690cd95d2f25450
- https://git.kernel.org/stable/c/8b8435630e45636664fb9bb0da7f0822be955464
- https://git.kernel.org/stable/c/9410f368f1b70a564950d714ba3b9b145eaa93dd
- https://git.kernel.org/stable/c/b643d32dfd3cfeac237eb9795dc795f766181342
- https://git.kernel.org/stable/c/d9128e169d36f8e57a55b2277022e596f9e13730
- https://git.kernel.org/stable/c/febe0bf350cbf38bb75241234aea2948b7f2eb90