{"api_version":"1","generated_at":"2026-12-04T03:20:28+00:00","cve":"CVE-2026-142866","urls":{"html":"https://cve.report/CVE-2026-142866","api":"https://cve.report/api/cve/CVE-2026-142866.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142866","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142866"},"summary":{"title":"md/raid5: fix NULL pointer dereference in raid5_free_percpu","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: fix NULL pointer dereference in raid5_free_percpu\n\nIf cpuhp_state_add_instance() fails in raid5_alloc_percpu() (e.g., the\nstartup callback raid456_cpu_up_prepare fails due to an allocation\nfailure), conf->node is never added to the cpuhp instance list and\nits pprev remains NULL (from kzalloc initialization).\n\nWhen setup_conf() then jumps to abort, free_conf() calls\nraid5_free_percpu(), which checks conf->percpu (non-NULL, since it was\nallocated before the cpuhp failure) and proceeds to call\ncpuhp_state_remove_instance().  This calls hlist_del() on the unhashed\nnode, which dereferences node->pprev (NULL), causing a kernel panic.\n\nGuard the removal with hlist_unhashed_lockless() so that the cpuhp\ninstance is only removed if it was actually added.  The lockless variant\nuses READ_ONCE() for the pprev read, which is safe here because the\nactual removal is synchronized by cpuhp_state_mutex inside\ncpuhp_state_remove_instance().","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:24","updated_at":"2026-12-03 04:18:24"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/febe0bf350cbf38bb75241234aea2948b7f2eb90","name":"https://git.kernel.org/stable/c/febe0bf350cbf38bb75241234aea2948b7f2eb90","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9410f368f1b70a564950d714ba3b9b145eaa93dd","name":"https://git.kernel.org/stable/c/9410f368f1b70a564950d714ba3b9b145eaa93dd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8b8435630e45636664fb9bb0da7f0822be955464","name":"https://git.kernel.org/stable/c/8b8435630e45636664fb9bb0da7f0822be955464","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/41742e35268d6a45161b187f51f42bc2ade14d0d","name":"https://git.kernel.org/stable/c/41742e35268d6a45161b187f51f42bc2ade14d0d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/408363a4fa9e377b5c9aed07543ffff88a18a6e4","name":"https://git.kernel.org/stable/c/408363a4fa9e377b5c9aed07543ffff88a18a6e4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b643d32dfd3cfeac237eb9795dc795f766181342","name":"https://git.kernel.org/stable/c/b643d32dfd3cfeac237eb9795dc795f766181342","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/45ceac48961d92e1d056457a5690cd95d2f25450","name":"https://git.kernel.org/stable/c/45ceac48961d92e1d056457a5690cd95d2f25450","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d9128e169d36f8e57a55b2277022e596f9e13730","name":"https://git.kernel.org/stable/c/d9128e169d36f8e57a55b2277022e596f9e13730","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142866","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142866","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 408363a4fa9e377b5c9aed07543ffff88a18a6e4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 d9128e169d36f8e57a55b2277022e596f9e13730 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 febe0bf350cbf38bb75241234aea2948b7f2eb90 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 b643d32dfd3cfeac237eb9795dc795f766181342 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 9410f368f1b70a564950d714ba3b9b145eaa93dd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 45ceac48961d92e1d056457a5690cd95d2f25450 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 8b8435630e45636664fb9bb0da7f0822be955464 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 29c6d1bbd7a2cd88a197ea7cef171f616e198526 41742e35268d6a45161b187f51f42bc2ade14d0d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"142866","cve":"CVE-2026-142866","epss":"0.003710000","percentile":"0.331360000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/md/raid5.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"408363a4fa9e377b5c9aed07543ffff88a18a6e4","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"d9128e169d36f8e57a55b2277022e596f9e13730","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"febe0bf350cbf38bb75241234aea2948b7f2eb90","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"b643d32dfd3cfeac237eb9795dc795f766181342","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"9410f368f1b70a564950d714ba3b9b145eaa93dd","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"45ceac48961d92e1d056457a5690cd95d2f25450","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"8b8435630e45636664fb9bb0da7f0822be955464","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"},{"lessThan":"41742e35268d6a45161b187f51f42bc2ade14d0d","status":"affected","version":"29c6d1bbd7a2cd88a197ea7cef171f616e198526","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/md/raid5.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.9"},{"lessThan":"4.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: fix NULL pointer dereference in raid5_free_percpu\n\nIf cpuhp_state_add_instance() fails in raid5_alloc_percpu() (e.g., the\nstartup callback raid456_cpu_up_prepare fails due to an allocation\nfailure), conf->node is never added to the cpuhp instance list and\nits pprev remains NULL (from kzalloc initialization).\n\nWhen setup_conf() then jumps to abort, free_conf() calls\nraid5_free_percpu(), which checks conf->percpu (non-NULL, since it was\nallocated before the cpuhp failure) and proceeds to call\ncpuhp_state_remove_instance().  This calls hlist_del() on the unhashed\nnode, which dereferences node->pprev (NULL), causing a kernel panic.\n\nGuard the removal with hlist_unhashed_lockless() so that the cpuhp\ninstance is only removed if it was actually added.  The lockless variant\nuses READ_ONCE() for the pprev read, which is safe here because the\nactual removal is synchronized by cpuhp_state_mutex inside\ncpuhp_state_remove_instance()."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:21:06.170Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/408363a4fa9e377b5c9aed07543ffff88a18a6e4"},{"url":"https://git.kernel.org/stable/c/d9128e169d36f8e57a55b2277022e596f9e13730"},{"url":"https://git.kernel.org/stable/c/febe0bf350cbf38bb75241234aea2948b7f2eb90"},{"url":"https://git.kernel.org/stable/c/b643d32dfd3cfeac237eb9795dc795f766181342"},{"url":"https://git.kernel.org/stable/c/9410f368f1b70a564950d714ba3b9b145eaa93dd"},{"url":"https://git.kernel.org/stable/c/45ceac48961d92e1d056457a5690cd95d2f25450"},{"url":"https://git.kernel.org/stable/c/8b8435630e45636664fb9bb0da7f0822be955464"},{"url":"https://git.kernel.org/stable/c/41742e35268d6a45161b187f51f42bc2ade14d0d"}],"title":"md/raid5: fix NULL pointer dereference in raid5_free_percpu","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142866","datePublished":"2026-12-03T03:21:06.170Z","dateReserved":"2026-12-03T03:10:28.334Z","dateUpdated":"2026-12-03T03:21:06.170Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:24","lastModifiedDate":"2026-12-03 04:18:24","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142866","Ordinal":"1","Title":"md/raid5: fix NULL pointer dereference in raid5_free_percpu","CVE":"CVE-2026-142866","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142866","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5: fix NULL pointer dereference in raid5_free_percpu\n\nIf cpuhp_state_add_instance() fails in raid5_alloc_percpu() (e.g., the\nstartup callback raid456_cpu_up_prepare fails due to an allocation\nfailure), conf->node is never added to the cpuhp instance list and\nits pprev remains NULL (from kzalloc initialization).\n\nWhen setup_conf() then jumps to abort, free_conf() calls\nraid5_free_percpu(), which checks conf->percpu (non-NULL, since it was\nallocated before the cpuhp failure) and proceeds to call\ncpuhp_state_remove_instance().  This calls hlist_del() on the unhashed\nnode, which dereferences node->pprev (NULL), causing a kernel panic.\n\nGuard the removal with hlist_unhashed_lockless() so that the cpuhp\ninstance is only removed if it was actually added.  The lockless variant\nuses READ_ONCE() for the pprev read, which is safe here because the\nactual removal is synchronized by cpuhp_state_mutex inside\ncpuhp_state_remove_instance().","Type":"Description","Title":"md/raid5: fix NULL pointer dereference in raid5_free_percpu"}]}}}