# CVE-2024-26712: powerpc/kasan: Fix addr error caused by page alignment

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2024-04-03T14:55:14.149Z
- **Modified:** 2026-08-05T11:26:49.646Z

## Who should check

- Anyone running Linux \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 230e89b5ad0a33f530a2a976b3e5e4385cb27882; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 2738e0aa2fb24a7ab9c878d912dc2b239738c6c6; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 0c09912dd8387e228afcc5e34ac5d79b1e3a1058; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 0516c06b19dc64807c10e01bb99b552bdf2d7dbe; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 70ef2ba1f4286b2b73675aeb424b590c92d57b25; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 4a7aee96200ad281a5cc4cf5c7a2e2a49d2b97b0; 5ce93076d8ee2a0fac3ad4adbd2e91b6197146db; \>= 5.3.6, \< 5.4
- Anyone running Linux 5.4

## Description

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.

## Affected and fixed versions

- Linux: \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 230e89b5ad0a33f530a2a976b3e5e4385cb27882; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 2738e0aa2fb24a7ab9c878d912dc2b239738c6c6; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 0c09912dd8387e228afcc5e34ac5d79b1e3a1058; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 0516c06b19dc64807c10e01bb99b552bdf2d7dbe; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 70ef2ba1f4286b2b73675aeb424b590c92d57b25; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 4a7aee96200ad281a5cc4cf5c7a2e2a49d2b97b0; 5ce93076d8ee2a0fac3ad4adbd2e91b6197146db; \>= 5.3.6, \< 5.4 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 5.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26712. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26712.md
Affected: Linux >= 663c0c9496a69f80011205ba3194049bcafd681d, < 230e89b5ad0a33f530a2a976b3e5e4385cb27882; >= 663c0c9496a69f80011205ba3194049bcafd681d, < 2738e0aa2fb24a7ab9c878d912dc2b239738c6c6; >= 663c0c9496a69f80011205ba3194049bcafd681d, < 0c09912dd8387e228afcc5e34ac5d79b1e3a1058; >= 663c0c9496a69f80011205b…
Fixed in: Linux 230e89b5ad0a33f530a2a976b3e5e4385cb27882, Linux 2738e0aa2fb24a7ab9c878d912dc2b239738c6c6, Linux 0c09912dd8387e228afcc5e34ac5d79b1e3a1058, Linux 0516c06b19dc64807c10e01bb99b552bdf2d7dbe, Linux 70ef2ba1f4286b2b73675aeb424b590c92d57b25, Linux 4a7aee96200ad281a5cc4cf5c7a2e2a49d2b97b0, Linux 5.4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26712 being exploited?

There is no confirmed exploitation: CVE-2024-26712 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26712?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26712?

Linux \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 230e89b5ad0a33f530a2a976b3e5e4385cb27882; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 2738e0aa2fb24a7ab9c878d912dc2b239738c6c6; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 0c09912dd8387e228afcc5e34ac5d79b1e3a1058; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 0516c06b19dc64807c10e01bb99b552bdf2d7dbe; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 70ef2ba1f4286b2b73675aeb424b590c92d57b25; \>= 663c0c9496a69f80011205ba3194049bcafd681d, \< 4a7aee96200ad281a5cc4cf5c7a2e2a49d2b97b0; 5ce93076d8ee2a0fac3ad4adbd2e91b6197146db; \>= 5.3.6, \< 5.4; Linux 5.4.

### Is there a fix for CVE-2024-26712?

Yes. Fixed in Linux 230e89b5ad0a33f530a2a976b3e5e4385cb27882, Linux 2738e0aa2fb24a7ab9c878d912dc2b239738c6c6, Linux 0c09912dd8387e228afcc5e34ac5d79b1e3a1058, Linux 0516c06b19dc64807c10e01bb99b552bdf2d7dbe, Linux 70ef2ba1f4286b2b73675aeb424b590c92d57b25, Linux 4a7aee96200ad281a5cc4cf5c7a2e2a49d2b97b0, Linux 5.4. Upgrade Linux to 5.4 or later.

### How do I check if I'm affected by CVE-2024-26712?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/230e89b5ad0a33f530a2a976b3e5e4385cb27882>
- patch: <https://git.kernel.org/stable/c/2738e0aa2fb24a7ab9c878d912dc2b239738c6c6>
- patch: <https://git.kernel.org/stable/c/0c09912dd8387e228afcc5e34ac5d79b1e3a1058>
- patch: <https://git.kernel.org/stable/c/0516c06b19dc64807c10e01bb99b552bdf2d7dbe>
- patch: <https://git.kernel.org/stable/c/70ef2ba1f4286b2b73675aeb424b590c92d57b25>
- patch: <https://git.kernel.org/stable/c/4a7aee96200ad281a5cc4cf5c7a2e2a49d2b97b0>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26712>

HTML: <https://flawdb.com/CVE-2024-26712> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26712>
