# CVE-2026-99701: mm/ksm: fix userfaultfd protection during merge and unmerge

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-28)
- **Published:** 2026-11-20T05:50:43.269Z
- **Modified:** 2026-11-20T06:18:05.773Z

## Who should check

- Anyone running Linux \>= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, \< 5cf7267b79f276c27825a2ebb95deda788a29e77; \>= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, \< 990d6c2194a938a19a8cf94c6cfd75171345089b
- Anyone running Linux 5.7

## Description

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

mm/ksm: fix userfaultfd protection during merge and unmerge

KSM loses userfaultfd protection when replace\_page() builds a new PTE from
vma-\>vm\_page\_prot.  Dropping its uffd bit lets a subsequent write go
through ordinary COW instead of userfaultfd write protection handling. 
For RWP, a merged page also becomes readable without faulting.

Keeping the uffd bit and restoring PAGE\_NONE fixes merging, but we also
have to handle unmerging.  An existing KSM page can be protected with RWP
before MADV\_UNMERGEABLE, so unmerging already needs fixing independently
of preserving RWP during merging.

Unsharing replaces a shared page with a private one and should leave
userfaultfd protection in place, as do\_wp\_page() already does for write
protection.  Currently, an unshare fault reaches do\_uffd\_rwp() before it
can proceed to do\_wp\_page().

- With synchronous RWP, handle\_userfault() returns VM\_FAULT\_SIGBUS.
  break\_ksm() then reports success with a KSM page still merged.

- With asynchronous RWP, protection is cleared before unsharing.

Preserve the uffd bit when merging, and restore PAGE\_NONE for RWP.  Let
FAULT\_FLAG\_UNSHARE skip RWP fault handling and keep PAGE\_NONE on each
private copy as well.  Unsharing can then complete with RWP still armed
for a subsequent access.

## Affected and fixed versions

- Linux: \>= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, \< 5cf7267b79f276c27825a2ebb95deda788a29e77; \>= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, \< 990d6c2194a938a19a8cf94c6cfd75171345089b (cvelist)
- Linux: 5.7 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 990d6c2194a938a19a8cf94c6cfd75171345089b 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-99701. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99701.md
Affected: Linux >= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, < 5cf7267b79f276c27825a2ebb95deda788a29e77; >= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, < 990d6c2194a938a19a8cf94c6cfd75171345089b; Linux 5.7
Fixed in: Linux 5cf7267b79f276c27825a2ebb95deda788a29e77, Linux 990d6c2194a938a19a8cf94c6cfd75171345089b

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, \< 5cf7267b79f276c27825a2ebb95deda788a29e77; \>= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, \< 990d6c2194a938a19a8cf94c6cfd75171345089b; Linux 5.7.

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

Yes. Fixed in Linux 5cf7267b79f276c27825a2ebb95deda788a29e77, Linux 990d6c2194a938a19a8cf94c6cfd75171345089b. Upgrade Linux to 990d6c2194a938a19a8cf94c6cfd75171345089b or later.

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

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/5cf7267b79f276c27825a2ebb95deda788a29e77>
- other: <https://git.kernel.org/stable/c/990d6c2194a938a19a8cf94c6cfd75171345089b>

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

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