# CVE-2026-93066: x86/mm/pat: Take cpa\_lock around large-page collapse

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-17T16:10:51.612Z
- **Modified:** 2026-10-19T10:16:56.493Z

## Who should check

- Anyone running Linux \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 591b6fac9df3f43522e8ff6eed8662f8b6f1a124; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< fb97d1d6c20692e15247fa5c8b894b2325e38aee; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 1aac65f3e651334259ecb2a5f5ddb81c01f02599
- Anyone running Linux 6.15

## Description

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

x86/mm/pat: Take cpa\_lock around large-page collapse

Loading and unloading modules concurrently on several CPUs on a KASAN
build, with a short delay injected at the CPA page-table lookup to
widen the window, faults within minutes:

  BUG: KASAN: use-after-free in \_\_change\_page\_attr+0x7cc/0x7e0
  Write of size 8 at addr ffff888181139718 by task modprobe
  ...
  The buggy address belongs to the physical page:
   pfn:0x181139 ... page\_type: f2(table)

cpa\_collapse\_large\_pages() rebuilds a leaf PMD from its 4K PTEs and
frees the old PTE-table pages, while \_\_change\_page\_attr() fetches a
PTE pointer from a lockless lookup\_address\_in\_pgd\_attr() and writes
it with set\_pte\_atomic() only later. When module text is served from
a shared large ROX mapping the two run on the same PMD:

  CPU A (module load)              CPU B (module finalize)
  -------------------              -----------------------
  execmem\_make\_temp\_rw
   set\_memory\_nx
    \_\_change\_page\_attr
     split 2M -\> 4K table P
     kpte = &P\[i\]  (lockless)
                                   execmem\_restore\_rox
                                    set\_memory\_rox (CPA\_COLLAPSE)
                                     cpa\_collapse\_large\_pages
                                      rebuild leaf PMD
                                      flush\_tlb\_all
                                      pagetable\_free(P)
     set\_pte\_atomic(kpte, ...)
       -\> writes into freed P

P is a page-table page (page\_type: table), reused at once, so the
write corrupts whatever got the page next: a bad-pte or bad-page
splat, or a fatal fault once P has been turned into read-only text.

The flush\_tlb\_all() before the free does not close this: its IPI only
serializes against page-table walkers that run with interrupts off
(e.g. GUP-fast); the walk in \_\_change\_page\_attr() runs with interrupts
on, so nothing stops it from holding a stale pointer into P.

Serialize the collapse - the PMD rebuild, TLB flush and PTE-table
free - under cpa\_lock, the same lock \_\_change\_page\_attr() now takes
unconditionally since commit ("x86/mm/pat: stop gating cpa\_lock on
debug\_pagealloc\_enabled()"), so a concurrent walker can no longer
hold a pointer into a table the collapse is about to free.

## Affected and fixed versions

- Linux: \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 591b6fac9df3f43522e8ff6eed8662f8b6f1a124; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< fb97d1d6c20692e15247fa5c8b894b2325e38aee; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 1aac65f3e651334259ecb2a5f5ddb81c01f02599 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 1aac65f3e651334259ecb2a5f5ddb81c01f02599 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-93066.md
Affected: Linux >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < 591b6fac9df3f43522e8ff6eed8662f8b6f1a124; >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < fb97d1d6c20692e15247fa5c8b894b2325e38aee; >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < 1aac65f3e651334259ecb2a5f5ddb81c01f02599; Linux 6.15
Fixed in: Linux 591b6fac9df3f43522e8ff6eed8662f8b6f1a124, Linux 1aac65f3e651334259ecb2a5f5ddb81c01f02599

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-93066 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 591b6fac9df3f43522e8ff6eed8662f8b6f1a124; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< fb97d1d6c20692e15247fa5c8b894b2325e38aee; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 1aac65f3e651334259ecb2a5f5ddb81c01f02599; Linux 6.15.

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

Yes. Fixed in Linux 591b6fac9df3f43522e8ff6eed8662f8b6f1a124, Linux 1aac65f3e651334259ecb2a5f5ddb81c01f02599. Upgrade Linux to 1aac65f3e651334259ecb2a5f5ddb81c01f02599 or later.

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

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/591b6fac9df3f43522e8ff6eed8662f8b6f1a124>
- other: <https://git.kernel.org/stable/c/fb97d1d6c20692e15247fa5c8b894b2325e38aee>
- other: <https://git.kernel.org/stable/c/1aac65f3e651334259ecb2a5f5ddb81c01f02599>

## 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-93066>

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