CVE-2024-26712: powerpc/kasan: Fix addr error caused by page alignment
In the Linux kernel, the following vulnerability has been resolved:
powerpc/kasan: Fix addr error caused by page alignment
In kasan_init_region, when k_start is not page aligned, at the begin of
for loop, k_cur = k_start & PAGE_MASK is less than k_start, and then
`va = block + k_cur - k_start` is less than block, the addr va is invalid,
because the memory address space from va to block is not alloced by
memblock_alloc, which will not be reserved by memblock_reserve later, it
will be used by other places.
As a result, memory overwriting occurs.
for example:
int __init __weak kasan_init_region(void *start, size_t size)
{
[...]
/* if say block(dcd97000) k_start(feef7400) k_end(feeff3fe) */
block = memblock_alloc(k_end - k_start, PAGE_SIZE);
[...]
for (k_cur = k_start & PAGE_MASK; k_cur < k_end; k_cur += PAGE_SIZE) {
/* at the begin of for loop
* block(dcd97000) va(dcd96c00) k_cur(feef7000) k_start(feef7400)
* va(dcd96c00) is less than block(dcd97000), va is invalid
*/
void *va = block + k_cur - k_start;
[...]
}
[...]
}
Therefore, page alignment is performed on k_start before
memblock_alloc() to ensure the validity of the VA address.
Security readout for executives and security teams
Plain-English summary
CVE-2024-26712 is a Linux kernel PowerPC KASAN initialization bug that can overwrite memory during early setup. The published impact is availability only, requiring local high privileges. It is most urgent for affected PowerPC systems running vulnerable kernels, especially where vendor kernels include KASAN-related code paths.
Executive priority
Schedule remediation through the normal kernel patch cycle unless affected PowerPC systems support critical services. Escalate if vulnerable kernels are used in availability-sensitive environments, because the documented impact is memory overwrite leading to denial of service.
Technical view
In kasan_init_region, a non-page-aligned k_start can make k_cur lower than k_start, causing va to point before the memblock_alloc allocation. That invalid address can later be reused, leading to memory overwrite. The fix aligns k_start before memblock_alloc to keep the virtual address inside allocated memory.
Likely exposure
Exposure appears limited to Linux kernel builds on PowerPC affected by the listed stable ranges or commits. The CVSS vector requires local access with high privileges, so internet-facing remote exploitation is not indicated by the provided sources.
Exploitation context
The source bundle does not report active exploitation, and KEV is false. The CVSS vector is local, low complexity, high privileges, no user interaction, with high availability impact and no stated confidentiality or integrity impact.
Researcher notes
Evidence supports a kernel memory overwrite caused by page-alignment handling in PowerPC KASAN initialization. The source bundle provides fix commits and affected kernel version data, but no exploit report, proof-of-concept, or detailed product matrix beyond Linux and Debian LTS reference material.
Mitigation direction
Upgrade to a vendor kernel containing the listed Linux stable fixes.
Review Debian LTS guidance if using Debian-packaged kernels.
Prioritize affected PowerPC hosts before unrelated architectures.
If no vendor package is available, follow vendor kernel backport guidance.
Avoid treating unverified commit hashes as proof of remediation.
Validation and detection
Inventory PowerPC Linux hosts and running kernel versions.
Check vendor advisories or package changelogs for CVE-2024-26712.
Compare custom kernels against the referenced stable commits.
Confirm whether KASAN-related kernel configuration is present.
Track remediation through normal kernel reboot validation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-26712 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.