mm: use aligned address in clear_gigantic_page()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| 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: use aligned address in clear_gigantic_page()
In current kernel, hugetlb_no_page() calls folio_zero_user() with the fault address. Where the fault address may be not aligned with the huge page size. Then, folio_zero_user() may call clear_gigantic_page() with the address, while clear_gigantic_page() requires the address to be huge page size aligned. So, this may cause memory corruption or information leak, addtional, use more obvious naming 'addr_hint' instead of 'addr' for clear_gigantic_page().
From the CVE record · Linux
The Linux kernel can pass an unaligned fault address to clear_gigantic_page(), which requires a huge-page-aligned address. This may cause memory corruption or an information leak. The input does not specify how an attacker could trigger it, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that may contain the affected huge-page clearing code should check their kernel version; affected versions are not specified.