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

Published Apr 3, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

powerpc/kasan: Fix addr error caused by page alignment

In kasaninitregion, when kstart is not page aligned, at the begin of for loop, kcur = kstart & PAGEMASK is less than kstart, and then va = block + kcur - kstart is less than block, the addr va is invalid, because the memory address space from va to block is not alloced by memblockalloc, which will not be reserved by memblockreserve later, it will be used by other places.

As a result, memory overwriting occurs.

for example: int init weak kasaninitregion(void start, sizet size) { [...] / if say block(dcd97000) kstart(feef7400) kend(feeff3fe) / block = memblockalloc(kend - kstart, PAGESIZE); [...] for (kcur = kstart & PAGEMASK; kcur < kend; kcur += PAGESIZE) { / at the begin of for loop block(dcd97000) va(dcd96c00) kcur(feef7000) kstart(feef7400) va(dcd96c00) is less than block(dcd97000), va is invalid / void va = block + kcur - kstart; [...] } [...] }

Therefore, page alignment is performed on kstart before memblockalloc() to ensure the validity of the VA address.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

powerpc/kasan: Fix addr error caused by page alignment

The Linux kernel CVE team has assigned CVE-2024-26712 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024040342-CVE-2024-26712-d713@gregkh/T

Red Hat

Affected Software

17 affected componentsFixes available
redhat/kernel<5.10.210
5.10.210
redhat/kernel<5.15.149
5.15.149
redhat/kernel<6.1.79
6.1.79
redhat/kernel<6.6.18
6.6.18
redhat/kernel<6.7.6
6.7.6
redhat/kernel<6.8
6.8
Linux Linux kernel>=5.4<5.10.210
Linux Linux kernel>=5.11<5.15.149
Linux Linux kernel>=5.16<6.1.79
Linux Linux kernel>=6.2<6.6.18
Linux Linux kernel>=6.7<6.7.6
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
Linux Linux kernel=6.8-rc4
Debian Debian Linux=10.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10.210
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.15.149
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1.79
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.18
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.7.6
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8
  8. Configuration

    In kasan_init_region, align k_start to a page boundary before memblock_alloc() so that in the for-loop (k_cur = k_start & PAGE_MASK; k_cur < k_end; k_cur += PAGE_SIZE) the computed va = block + k_cur - k_start remains valid (i.e., not less than block).

    Linux kernel powerpc/kasan (kasan_init_region) page alignment of k_start before memblock_alloc() = Perform page alignment on k_start prior to calling memblock_alloc()

Event History

Apr 3, 2024
CVE Published
via MITRE·02:55 PM
Data Sourced
via MITRE·02:55 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Red Hat·11:31 PM
DescriptionSeverityAffected Software
May 7, 2024
Data Sourced
via Launchpad·08:29 PM
Description
May 7, 2025
Data Sourced
via Ubuntu·06:14 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-26712?

CVE-2024-26712 is considered a vulnerability in the Linux kernel that affects memory handling, potentially leading to crashes or undefined behavior.

2

How do I fix CVE-2024-26712?

To mitigate CVE-2024-26712, update your Linux kernel to a version higher than 5.10.210, 5.15.149, 6.1.79, 6.6.18, 6.7.6, or any of the specified Debian kernel updates.

3

Which Linux kernel versions are affected by CVE-2024-26712?

CVE-2024-26712 affects various versions of the Linux kernel prior to 5.10.210, 5.15.149, 6.1.79, 6.6.18, and 6.7.6.

4

Is CVE-2024-26712 related to memory safety?

Yes, CVE-2024-26712 involves a memory error that can occur due to improper page alignment in the Linux kernel's KASan functionality.

5

What is KASan in relation to CVE-2024-26712?

KASan, or Kernel Address Sanitizer, is a memory error detection feature in the Linux kernel, and CVE-2024-26712 addresses a vulnerability within this feature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203