md/raid5: fix NULL pointer dereference in raid5_free_percpu

Summary

CVECVE-2026-142866
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 04:18:24 UTC
Updated2026-12-03 04:18:24 UTC
DescriptionIn 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().

Risk And Classification

EPSS: 0.003710000 probability, percentile 0.331360000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 408363a4fa9e377b5c9aed07543ffff88a18a6e4 git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 d9128e169d36f8e57a55b2277022e596f9e13730 git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 febe0bf350cbf38bb75241234aea2948b7f2eb90 git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 b643d32dfd3cfeac237eb9795dc795f766181342 git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 9410f368f1b70a564950d714ba3b9b145eaa93dd git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 45ceac48961d92e1d056457a5690cd95d2f25450 git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 8b8435630e45636664fb9bb0da7f0822be955464 git Not specified
CNA Linux Linux affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 41742e35268d6a45161b187f51f42bc2ade14d0d git Not specified
CNA Linux Linux affected 4.9 Not specified
CNA Linux Linux unaffected 4.9 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/febe0bf350cbf38bb75241234aea2948b7f2eb90 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9410f368f1b70a564950d714ba3b9b145eaa93dd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8b8435630e45636664fb9bb0da7f0822be955464 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/41742e35268d6a45161b187f51f42bc2ade14d0d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/408363a4fa9e377b5c9aed07543ffff88a18a6e4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b643d32dfd3cfeac237eb9795dc795f766181342 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/45ceac48961d92e1d056457a5690cd95d2f25450 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d9128e169d36f8e57a55b2277022e596f9e13730 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report