mm: huge_memory: use !CONFIG_64BIT to relax huge page alignment on 32 bit machines
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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/
From the CVE record · Linux
A Linux kernel change intended to relax huge page alignment on 32-bit machines did not work for x86_32 because it checked CONFIG_32BIT instead of CONFIG_X86_32. The input does not describe what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels on 32-bit machines, particularly x86_32, should check whether their kernel includes the correction; affected versions are not specified.