CVE-2026-142866

Source
https://cve.org/CVERecord?id=CVE-2026-142866
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142866.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142866
Downstream
Published
2026-12-03T03:21:06Z
Modified
2026-12-03T05:01:03Z
Summary
md/raid5: fix NULL pointer dereference in raid5_free_percpu
Details

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().

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142866.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
29c6d1bbd7a2cd88a197ea7cef171f616e198526
Fixed
408363a4fa9e377b5c9aed07543ffff88a18a6e4
Fixed
d9128e169d36f8e57a55b2277022e596f9e13730
Fixed
febe0bf350cbf38bb75241234aea2948b7f2eb90
Fixed
b643d32dfd3cfeac237eb9795dc795f766181342
Fixed
9410f368f1b70a564950d714ba3b9b145eaa93dd
Show 3 more events Show fewer events
Fixed
45ceac48961d92e1d056457a5690cd95d2f25450
Fixed
8b8435630e45636664fb9bb0da7f0822be955464
Fixed
41742e35268d6a45161b187f51f42bc2ade14d0d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142866.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.9.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142866.json"