CVE-2024-42293
published high CVSS 3.1 · 7.8arm64: mm: Fix lockless walks with static and dynamic page-table folding
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0dd4f60a2c76938c2625f6c630c225699d97608b to < 78672d49d3eebbcda3589f4d6e589caf357c5a59 · 0dd4f60a2c76938c2625f6c630c225699d97608b to < 36639013b3462c06ff8e3400a427f775b4fc97f5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.10.3 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: arm64: mm: Fix lockless walks with static and dynamic page-table folding Lina reports random oopsen originating from the fast GUP code when 16K pages are used with 4-level page-tables, the fourth level being folded at runtime due to lack of LPA2. In this configuration, the generic implementation of p4d_offset_lockless() will return a 'p4d_t *' corresponding to the 'pgd_t' allocated on the stack of the caller, gup_fast_pgd_range(). This is normally fine, but when the fourth level of page-table is folded at runtime, pud_offset_lockless() will offset from the address of the 'p4d_t' to calculate the address of the PUD in the same page-table page. This results in a stray stack read when the 'p4d_t' has been allocated on the stack and can send the walker into the weeds. Fix the problem by providing our own definition of p4d_offset_lockless() when CONFIG_PGTABLE_LEVELS <= 4 which returns the real page-table pointer rather than the address of the local stack variable.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is reached via ordinary syscalls that invoke GUP-fast on `current->mm` (O_DIRECT read/write, io_uring, vmsplice, futex, process_vm_readv), and it walks the calling task's own kernel stack. This requires local code execution; there is no remote or adjacent trigger. AC:L - No race and no unpredictable state is needed — the stray stack read happens on every GUP-fast call in the affected configuration, and the attacker directly selects which 8-byte stack word is used as a PUD by choosing the user address (`pud_index(addr) = (addr >> 36) & 2047` covers the whole 16K stack). The vulnerable build (16K pages with the default 52-bit VA) plus non-LPA2 hardware is a real, widely shipped deployment (Asahi Linux, 16KB-page Android), and is not a condition the attacker must win. PR:L - Any unprivileged local user can call `pread()`/`pwrite()` on an O_DIRECT fd, `vmsplice()`, `futex()`, or io_uring to enter `gup_fast_fallback()`. No capability, namespace, or other access check exists on the path. UI:N - The attacker triggers the fault entirely through their own syscalls on their own address space; no victim action or cooperation is needed. S:U - The corruption and its consequences are confined to the kernel's own security authority — standard kernel memory corruption and privilege escalation, not a VM or IOMMU boundary crossing. C:H - Attacker-controlled kernel-stack words (including `pt_regs`-held user register values) are interpreted as PUD/PMD/PTE entries with no `pfn_valid()` check in production builds, so `pud_page()`/`pte_page()` returns a struct page for an arbitrary PFN that the caller then reads — an arbitrary physical memory read primitive (e.g. dumping kernel memory via an O_DIRECT write). I:H - The same fabricated page-table walk lets an O_DIRECT read or io_uring write target arbitrary physical pages, and `try_grab_folio()` performs a refcount increment on a struct page synthesized from a fully controlled 64-bit value, giving arbitrary write primitives suitable for control-flow hijacking and privilege escalation. A:H - The reporter observed random kernel oopsen from the fast GUP code in this configuration, and dereferencing garbage as page-table entries reliably produces kernel panics and refcount corruption.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0dd4f60a2c76938c2625f6c630c225699d97608b to < 78672d49d3eebbcda3589f4d6e589caf357c5a59 (affected · git)0dd4f60a2c76938c2625f6c630c225699d97608b to < 36639013b3462c06ff8e3400a427f775b4fc97f5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.10.3 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
2Linux · cna
arm64: mm: Fix lockless walks with static and dynamic page-table folding
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 53de676125c55eaf75195c2f6ae755a9d21f74eff8f4c89f26f0cc82c4cbc3cd
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record