CVE-2026-43148: powerpc/smp: Add check for kcalloc() failure in parse_thread_groups()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
powerpc/smp: Add check for kcalloc() failure in parse_thread_groups()
As kcalloc() may fail, check its return value to avoid a NULL pointer dereference when passing it to of_property_read_u32_array().
The Linux kernel CVE team has assigned CVE-2026-43148 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 5.15.202 with commit 1de31dba19c3cd0c1caf388a286b46df638f0b91 Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 6.1.165 with commit b265e53d9adfbb5751713185843f7188aa9dd066 Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 6.6.128 with commit 9d0ca11258e7b452653d04310addfec1753de1a2 Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 6.12.75 with commit ca46d2092f307385a7acfb42632056570d6dbbbc Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 6.18.16 with commit 9b85c8f624b0f8cf9b932f5a65dacd56a1f47a72 Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 6.19.6 with commit 8b221db0b7d24675e465e98d9326d298025a4e8d Issue introduced in 5.11 with commit 790a1662d3a26fe9fa5f691386d8fde6bb8b0dc2 and fixed in 7.0 with commit 33c1c6d8a28a2761ac74b0380b2563cf546c2a3a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-43148
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/powerpc/kernel/smp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/1de31dba19c3cd0c1caf388a286b46df638f0b91 https://git.kernel.org/stable/c/b265e53d9adfbb5751713185843f7188aa9dd066 https://git.kernel.org/stable/c/9d0ca11258e7b452653d04310addfec1753de1a2 https://git.kernel.org/stable/c/ca46d2092f307385a7acfb42632056570d6dbbbc https://git.kernel.org/stable/c/9b85c8f624b0f8cf9b932f5a65dacd56a1f47a72 https://git.kernel.org/stable/c/8b221db0b7d24675e465e98d9326d298025a4e8d https://git.kernel.org/stable/c/33c1c6d8a28a2761ac74b0380b2563cf546c2a3a