# CVE-2026-97533: x86/mm/pat: Acquire init\_mm read lock on attribute changes to avoid UAF

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-25T10:21:33.188Z
- **Modified:** 2026-10-19T10:17:22.327Z

## Who should check

- Anyone running Linux \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< cc73b2043d106b467accd38e9b1fc09e0607c056; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< d5d8b8662e6e5a565b47a0388640e88402f23274
- Anyone running Linux 6.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

x86/mm/pat: Acquire init\_mm read lock on attribute changes to avoid UAF

A previous commit protected against races between ptdump and CPA collapse,
however one still exists between attribute changes and collapse as reported
by Denis V. Lunev (linked).

When an attribute change arises, a lockless page table walker obtains a PTE
entry, which is later written to via set\_pte\_atomic():

  ...
  -\> change\_page\_attr\_set\_clr()
  -\> \_\_change\_page\_attr\_set\_clr()
  -\> \_\_change\_page\_attr()
	-\> \_lookup\_address\_cpa()
	-\> lookup\_address\_in\_pgd\_attr()
	-\> \[ lockless page table walker \]
  -\> set\_pte\_atomic()

There is nothing preventing a concurrent CPA collapse which can free the
PTE that was retrieved here, resulting in a use-after-free.

With the mmap write lock taken on init\_mm over CPA collapse, resolve this
race by acquiring an mmap read lock on init\_mm over
\_\_change\_page\_attr\_set\_clr().

This locks across the whole operation over which the walk and the PTE
entry write occurs, solving the race.

It is safe to do this here, as no spinlocks are held upon entry to
\_\_change\_page\_attr\_set\_clr().

However, the lock must not be held over an allocation, as allocation can
trigger reclaim and shrinkers may call into CPA recursively, making
deadlocks possible (init\_mm -\> ... -\> fs\_reclaim -\> init\_mm).

A page table is allocated when a huge page needs to be split:

  -\> change\_page\_attr\_set\_clr()
  -\> \_\_change\_page\_attr\_set\_clr()
  -\> \_\_change\_page\_attr()
  -\> split\_large\_page()
  \[ pagetable\_alloc() \]
  -\> \_\_split\_large\_page()

Avoid deadlocks by dropping the mmap lock across pagetable\_alloc() in
split\_large\_page() and track whether this is needed by adding a new
'init\_mm\_read\_locked' flag to struct cpa\_data.

This is safe as \_\_split\_large\_page() (called with locks re-established)
revalidates that the page table entry is the same as it was prior to the
locks being dropped and \_\_change\_page\_attr() repeats the entire page table
walk whenever a split occurs, so concurrent split and collapse are
accounted for.

Concurrent ptdump is also safe as the lock is only dropped over page table
allocation during which time the page table has not yet been modified.

The CPA\_COLLAPSE flag is only set by set\_memory\_rox(), which exclusively
operates upon vmalloc ranges, and on x86 only within the module mapping
space.

This is important, because some callers directly invoke
\_\_change\_page\_attr\_set\_clr(), bypassing this lock. However, none of these
operate within the module mapping space.

  \* cpa\_process\_alias() - a recursive helper called by
    \_\_change\_page\_attr\_set\_clr().
  \* \_\_set\_memory\_enc\_pgtable() - operates on the direct mapping and (via
    \_\_vmbus\_establish\_gpadl()) the vmalloc mapping space.
  \* \_\_set\_pages\_\[n\]p() - called by set\_direct\_map\_\[invalid, default,
    valid\]\_noflush(), \_\_kernel\_map\_pages() - operates on the direct map.
  \* kernel\_\[un\]map\_pages\_in\_pgd() - operates on EFI ranges.

This work is based upon Denis V. Lunev's excellent analysis of the bug
with gratitude.

\[ dhansen: move to imperative voice in changelog \]

## Affected and fixed versions

- Linux: \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< cc73b2043d106b467accd38e9b1fc09e0607c056; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< d5d8b8662e6e5a565b47a0388640e88402f23274 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97533. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97533.md
Affected: Linux >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab; >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < cc73b2043d106b467accd38e9b1fc09e0607c056; >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < d5d8b8662e6e5a565b47a0388640e88402f23274; Linux 6.15
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97533 being exploited?

There is no confirmed exploitation: CVE-2026-97533 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97533?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-97533?

Linux \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< cc73b2043d106b467accd38e9b1fc09e0607c056; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< d5d8b8662e6e5a565b47a0388640e88402f23274; Linux 6.15.

### Is there a fix for CVE-2026-97533?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-97533?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab>
- other: <https://git.kernel.org/stable/c/cc73b2043d106b467accd38e9b1fc09e0607c056>
- other: <https://git.kernel.org/stable/c/d5d8b8662e6e5a565b47a0388640e88402f23274>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97533>

HTML: <https://flawdb.com/CVE-2026-97533> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97533>
