PT-2026-162842
CVE-2026-99875
·
تاريخ النشر
2026-11-30
·
تاريخ التحديث
2026-11-30
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
arm64/mm: restrict transparent contpte mappings to valid PTEs
The transparent contpte layer treats PTE CONT as software grouping state.
When a valid PTE has PTE CONT set, the contpte helpers may align an
operation to a CONT PTE SIZE block and operate on the whole block. The
current single-PTE helpers use pte valid cont() to identify such groups;
this is a helper contract, not an architectural restriction on using
PTE CONT with present-invalid descriptors. Explicit users such as hugetlb
manage their contiguous encodings separately.
contpte set ptes() currently sets PTE CONT from alignment alone. Batched
set ptes() users can therefore install present-invalid PTEs with
PTE CONT set, for example mprotect(PROT NONE), NUMA hinting through
modify prot commit ptes(), fork() copying a PROT NONE large folio, or a
PMD split installing PAGE NONE PTEs.
This is not a hardware programming problem: invalid descriptors are not
translated, so the hardware ignores descriptor bits such as PTE CONT. It
is a software-state problem. Some arm64 fast paths, such as
test and clear young ptes(), test pte cont() directly instead of
pte valid cont().
In the observed failure, mprotect(PROT NONE) installed a full
CONT PTE SIZE range of present-invalid PTEs with PTE CONT set.
MADV GUARD INSTALL then zapped one PTE. The nr == 1 clear full ptes()
path only unfolds pte valid cont() entries, so the neighbouring
present-invalid entries kept PTE CONT while the target entry became a
guard marker.
clear refs pte range() then reached the marker through:
ptep test and clear young()
test and clear young ptes()
contpte test and clear young ptes()
contpte align addr ptep()
ptep test and clear young()
The marker changed from old pte=0x00000000000047c0 to
new pte=0x00000000000043c0 by clearing PTE AF. For swap PTEs, bit 10 is
part of the swap type field, bits 6-10: 0x47c0 is SWP PTE MARKER with
offset 4, while 0x43c0 has type 15 and is decoded as an ordinary swap
entry. Zap later warned in swap put entries direct() with a bad swap
entry.
Present-invalid PTEs could retain PTE CONT as software grouping state,
but their single-PTE modification paths would then need to recognize
and unfold those groups consistently. Since current helpers mostly use
pte valid cont() for membership, avoid creating present-invalid
transparent contpte groups in contpte set ptes(). They bring no hardware
benefit while invalid, and eligible valid ranges can be grouped again
when they are installed.
The public set ptes() wrapper already clears PTE CONT before calling
contpte set ptes(). Return invalid PTEs through set ptes() directly,
and warn if a future direct caller unexpectedly passes an invalid PTE
with PTE CONT set.
This is triggerable by a user process against its own address space. On
systems running with panic on warn, the warning becomes a denial of
service.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾