# CVE-2026-99463: mm/rmap: don't discard lazyfree THPs at PMD level

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-28)
- **Published:** 2026-11-19T14:42:16.661Z
- **Modified:** 2026-11-22T11:16:52.857Z

## Who should check

- Anyone running Linux \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 3594027c292b09d9301b4be80fa8e0c815ffaf2a; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< b8c683bd548268453d50e933aab2e7d50a7ac2be; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 984c0700854e35779a2bcce6b02783e709b6efa2
- Anyone running Linux 6.11

## Description

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

mm/rmap: don't discard lazyfree THPs at PMD level

\_\_discard\_anon\_folio\_pmd\_locked() clears a lazyfree THP's PMD before it
determines whether the folio can be discarded, and restores it if the
folio is dirty or has extra references.  It is done under only the PMD
lock and the anon\_vma read lock inside try\_to\_unmap\_one() and no mmap lock
is held.  The temporarily none PMD causes UAF.

A parallel munmap() or mremap() is supposed to serialize with it on the
PMD lock, but zap\_pmd\_range() (called by munmap()) and move\_page\_tables()
(called by mremap()) do not take the lock when they see the temporarily
none PMD and skip the PMD.  There is no more page table walk after the
none PMD is restored:

- munmap(): free\_pgtables() waits in unlink\_anon\_vmas() for the anon\_vma
  lock, then free\_pmd\_range() drops the restored PMD as bad without
  removing the rmap, so the folio keeps a stale mapcount.

- whole-VMA MREMAP\_DONTUNMAP: dontunmap\_complete() unlinks the source VMA
  from its anon\_vma while the restored PMD still maps the folio.

- plain mremap(): the THP is not moved but unmapped, so the THP's data is
  lost.

In the first two cases, the folio stays mapped, but no VMA that maps it is
linked to its anon\_vma.  When the anon\_vma is freed, it is still reachable
when one rmap walks the folio.  Racing lazyfree reclaim against
MREMAP\_DONTUNMAP as an unprivileged user reproduces a KASAN use-after-free
in folio\_lock\_anon\_vma\_read() as reported in the Closes link.

One solution is to use an invalidated PMD instead of a cleared one until
the discard is committed, but it needs arch fixes first.
1. GUP-fast still follows an invalidated PMD on riscv, LoongArch and s390.
2. sparc64 miscounts thp\_pte\_count when an invalidated PMD is set again or
   cleared.

To keep the fix simple for backport, stop discarding lazyfree THPs at PMD
level instead. try\_to\_unmap\_one() splits the PMD and discards the folio at
PTE level.

unmap\_huge\_pmd\_locked() and \_\_discard\_anon\_folio\_pmd\_locked() are left in
place, unused, to minimize this fix for backport and the invalidated PMD
approach is planned as a follow-up series to use them again.

## Affected and fixed versions

- Linux: \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 3594027c292b09d9301b4be80fa8e0c815ffaf2a; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< b8c683bd548268453d50e933aab2e7d50a7ac2be; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 984c0700854e35779a2bcce6b02783e709b6efa2 (cvelist)
- Linux: 6.11 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-99463.md
Affected: Linux >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3; >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 3594027c292b09d9301b4be80fa8e0c815ffaf2a; >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < b8c683bd548268453d50e933aab2e7d50a7ac2be; >= 735ecdfaf4e802209caf34b…
Fixed in: Linux 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3, Linux 3594027c292b09d9301b4be80fa8e0c815ffaf2a, Linux 984c0700854e35779a2bcce6b02783e709b6efa2

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 3594027c292b09d9301b4be80fa8e0c815ffaf2a; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< b8c683bd548268453d50e933aab2e7d50a7ac2be; \>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, \< 984c0700854e35779a2bcce6b02783e709b6efa2; Linux 6.11.

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

Yes. Fixed in Linux 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3, Linux 3594027c292b09d9301b4be80fa8e0c815ffaf2a, Linux 984c0700854e35779a2bcce6b02783e709b6efa2. Upgrade Linux to 984c0700854e35779a2bcce6b02783e709b6efa2 or later.

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

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/8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3>
- other: <https://git.kernel.org/stable/c/3594027c292b09d9301b4be80fa8e0c815ffaf2a>
- other: <https://git.kernel.org/stable/c/b8c683bd548268453d50e933aab2e7d50a7ac2be>
- other: <https://git.kernel.org/stable/c/984c0700854e35779a2bcce6b02783e709b6efa2>

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

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