CVE-2024-42258: mm: huge_memory: use !CONFIG_64BIT to relax huge page alignment on 32 bit machines

Published Aug 12, 2024
·
Updated

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

mm: hugememory: use !CONFIG64BIT to relax huge page alignment on 32 bit machines

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

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024081216-CVE-2024-42258-e3f3@gregkh/T

Other sources

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

mm: hugememory: use !CONFIG64BIT to relax huge page alignment on 32 bit machines

Yves-Alexis Perez reported commit 4ef9ad19e176 ("mm: hugememory: don't force huge page alignment on 32 bit") didn't work for x8632 [1]. It is because x8632 uses CONFIGX8632 instead of CONFIG32BIT.

!CONFIG64BIT should cover all 32 bit machines.

[1] https://lore.kernel.org/linux-mm/CAHbLzkr1LwH3pcTgM+aGQ31ip2bKqiqEQ8=FQB+t2c3dhNKNHA@mail.gmail.com/

NVD

Affected Software

3 affected componentsFixes available
Linux Linux kernel>=6.8<6.10.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
debian/linux-6.1
6.1.129-1~deb11u1

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.22-1Fixed in 6.12.25-1
  2. Upgrade

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

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch CVE-2024-42258
  4. Configuration

    Update the huge page alignment logic to use '!CONFIG_64BIT' so huge page alignment is relaxed on 32-bit machines (x86_32 uses CONFIG_X86_32 instead of CONFIG_32BIT, so '!CONFIG_64BIT' is the needed condition).

    Linux kernel mm: huge_memory CONFIG_64BIT = !CONFIG_64BIT

Event History

Aug 12, 2024
CVE Published
via MITRE·02:16 PM
Data Sourced
via MITRE·02:16 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·07:06 PM
DescriptionSeverityAffected Software
Jan 13, 2025
Data Sourced
via Ubuntu·06:29 PM
RemedyDescriptionSeverityAffected Software
Jan 3, 58561
Event
via MITRE·10:20 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-42258?

CVE-2024-42258 is categorized as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-42258?

To fix CVE-2024-42258, update the Linux kernel to a version that includes the patch, such as those listed in the affected software section.

3

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

CVE-2024-42258 affects Linux kernel versions from 6.8 to 6.10.3.

4

Is CVE-2024-42258 specific to 32-bit systems?

Yes, CVE-2024-42258 deals with huge page alignment issues specifically on 32-bit machines.

5

What is the impact of CVE-2024-42258 on systems using the Linux kernel?

CVE-2024-42258 can lead to potential memory mismanagement on systems using 32-bit architectures, impacting performance and stability.

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