# CVE-2026-97943: x86/mm/pat: Acquire init\_mm write lock on collapse 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-25T10:22:54.787Z
- **Modified:** 2026-10-19T10:17:45.520Z

## Who should check

- Anyone running Linux \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 35820cf8dd521f5a651e221483015b0586794516; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 93b98882198b15bd482da1fe8e84b05c7c3b3d83; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< a1c7570cedd03372812a5b693732880867babbca
- Anyone running Linux 6.15

## Description

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

x86/mm/pat: Acquire init\_mm write lock on collapse to avoid UAF

x86 implements page attribute modification using its Change Page
Attributes (CPA) mechanism.

This tracks properties of ranges such as cache mode through x86 page
attributes, and as part of that logic manipulates kernel page tables.

Since commit:

  41d88484c71c ("x86/mm/pat: restore large ROX pages after fragmentation")

ranges of kernel page table entries can be collapsed into
huge page table entries as part of this logic.

As part of this collapse, it frees the page tables which the collapsed
entries previously pointed to, and it does so without any relevant locks
being held to preclude concurrent kernel page table walkers.

The only way this code can be reached is if CPA\_COLLAPSE is specified, and
this is only set in set\_memory\_rox() via:

set\_memory\_rox()
-\> change\_page\_attr\_set\_clr()
-\> cpa\_flush()
-\> cpa\_collapse\_large\_pages()

Notable users of this are execmem and BPF when manipulating executable
mappings.

However, this is problematic for ptdump as it walks ranges it does not own
and thus runs the risk of a use-after-free on page tables freed underneath
it.

In addition, concurrent CPA collapse operations are possible which can also
cause races.

Resolve the issue by acquiring the mmap write lock on init\_mm across the
whole operation.

It is safe to acquire a sleeping lock as all the callers invoke
set\_memory\_rox() from process context and in any case,
change\_page\_attr\_set\_clr() calls vm\_unmap\_alias() which ultimately takes a
mutex, disallowing atomic context here.

## Affected and fixed versions

- Linux: \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 35820cf8dd521f5a651e221483015b0586794516; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 93b98882198b15bd482da1fe8e84b05c7c3b3d83; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< a1c7570cedd03372812a5b693732880867babbca (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-97943. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97943.md
Affected: Linux >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < 35820cf8dd521f5a651e221483015b0586794516; >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < 93b98882198b15bd482da1fe8e84b05c7c3b3d83; >= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, < a1c7570cedd03372812a5b693732880867babbca; Linux 6.15
Fixed in: Linux 35820cf8dd521f5a651e221483015b0586794516, Linux 93b98882198b15bd482da1fe8e84b05c7c3b3d83

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

There is no confirmed exploitation: CVE-2026-97943 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-97943?

It has no CVSS score yet. Unknown.

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

Linux \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 35820cf8dd521f5a651e221483015b0586794516; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< 93b98882198b15bd482da1fe8e84b05c7c3b3d83; \>= 41d88484c71cd4f659348da41b7b5b3dbd3be1f6, \< a1c7570cedd03372812a5b693732880867babbca; Linux 6.15.

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

Yes. Fixed in Linux 35820cf8dd521f5a651e221483015b0586794516, Linux 93b98882198b15bd482da1fe8e84b05c7c3b3d83. No fix listed yet: follow the vendor advisory.

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

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/35820cf8dd521f5a651e221483015b0586794516>
- other: <https://git.kernel.org/stable/c/93b98882198b15bd482da1fe8e84b05c7c3b3d83>
- other: <https://git.kernel.org/stable/c/a1c7570cedd03372812a5b693732880867babbca>

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

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