# CVE-2026-99666: mm/khugepaged: fix PMD table lock leak in try\_collapse\_pte\_mapped\_thp()

- **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-28)
- **Published:** 2026-11-20T05:50:16.494Z
- **Modified:** 2026-11-20T06:18:00.903Z

## Who should check

- Anyone running Linux \>= 6375e95f381e3dc85065b6f74263a61522736203, \< 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16; \>= 6375e95f381e3dc85065b6f74263a61522736203, \< ad5e5800ce560759c8d3c10aac15b48a06cd21c1; \>= 6375e95f381e3dc85065b6f74263a61522736203, \< db38b902307e687219ec765ef51a6ef459746c87
- Anyone running Linux 6.14

## Description

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

mm/khugepaged: fix PMD table lock leak in try\_collapse\_pte\_mapped\_thp()

For a private mapping with userfaultfd, try\_collapse\_pte\_mapped\_thp()
takes the PMD table lock before it maps the page table for the second time.
If that (pte\_offset\_map\_rw\_nolock) fails, because the page table vanished
in the meantime due to concurrent page table reclaim, it leaves through
the abort label, where the PMD table lock is unlocked if it differs from
PTE table lock.

In case the PMD table lock and the PTE table lock match, which is the
case without CONFIG\_SPLIT\_PTE\_PTLOCKS after pte\_offset\_map\_rw\_nolock()
failed, we miss to unlock the PMD table.

To fix it, forget the PTE table lock when we unmap+unlock the PTE table.

Fix generated by an LLM and sent by Josef Bacik in private.

\[ david: move the ptl = NULL handling; rewrite description, drop wrong comments \]

## Affected and fixed versions

- Linux: \>= 6375e95f381e3dc85065b6f74263a61522736203, \< 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16; \>= 6375e95f381e3dc85065b6f74263a61522736203, \< ad5e5800ce560759c8d3c10aac15b48a06cd21c1; \>= 6375e95f381e3dc85065b6f74263a61522736203, \< db38b902307e687219ec765ef51a6ef459746c87 (cvelist)
- Linux: 6.14 (cvelist)

## Technologies

Linux kernel

## 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-99666. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99666.md
Affected: Linux >= 6375e95f381e3dc85065b6f74263a61522736203, < 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16; >= 6375e95f381e3dc85065b6f74263a61522736203, < ad5e5800ce560759c8d3c10aac15b48a06cd21c1; >= 6375e95f381e3dc85065b6f74263a61522736203, < db38b902307e687219ec765ef51a6ef459746c87; Linux 6.14
Fixed in: Linux 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16

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

There is no confirmed exploitation: CVE-2026-99666 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-28).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 6375e95f381e3dc85065b6f74263a61522736203, \< 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16; \>= 6375e95f381e3dc85065b6f74263a61522736203, \< ad5e5800ce560759c8d3c10aac15b48a06cd21c1; \>= 6375e95f381e3dc85065b6f74263a61522736203, \< db38b902307e687219ec765ef51a6ef459746c87; Linux 6.14.

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

Yes. Fixed in Linux 7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16. No fix listed yet: follow the vendor advisory.

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

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/7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16>
- other: <https://git.kernel.org/stable/c/ad5e5800ce560759c8d3c10aac15b48a06cd21c1>
- other: <https://git.kernel.org/stable/c/db38b902307e687219ec765ef51a6ef459746c87>

## 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-99666>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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