PT-2024-29843 · Linux · Linux Kernel

Asahi Lina

·

Published

2024-07-25

·

Updated

2024-08-22

·

CVE-2024-42293

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the Linux kernel's memory management, specifically with lockless walks and static and dynamic page-table folding on arm64 architectures. When 16K pages are used with 4-level page-tables and the fourth level is folded at runtime due to lack of LPA2, the generic implementation of p4d offset lockless() returns a p4d t * corresponding to the pgd t allocated on the stack of the caller, gup fast pgd range(). This can result in a stray stack read when the p4d t has been allocated on the stack, potentially causing issues. The problem is fixed by providing a custom definition of p4d offset lockless() when CONFIG PGTABLE LEVELS is less than or equal to 4, which returns the real page-table pointer rather than the address of the local stack variable.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Out of bounds Read

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-04391
CVE-2024-42293

Affected Products

Linux Kernel