# CVE-2026-98939: x86/mm: Drop unnecessary PMD page copy when freeing

> 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.17% (percentile 6, 2026-12-01)
- **Published:** 2026-10-23T12:12:06.180Z
- **Modified:** 2026-10-23T13:17:14.843Z

## Who should check

- Anyone running Linux \>= e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab, \< d3c2d2692bdf4af94bb27bc7a3aa0a348a567606; \>= cc73b2043d106b467accd38e9b1fc09e0607c056, \< f38c57a28ebbd057471573e39555d5aa11ab03cf; \>= d5d8b8662e6e5a565b47a0388640e88402f23274, \< e3ee38c1bc0b11a8d3e63dce7050759b61864286
- Anyone running Linux \>= 6.18.53, \< 6.18.56; \>= 7.2.7, \< 7.2.10

## Description

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

x86/mm: Drop unnecessary PMD page copy when freeing

On a box with a discrete GPU, lockdep reports a possible deadlock as
soon as kswapd shrinks the TTM page pool. The immediate cause is an
x86 commit that added an mmap\_read\_lock() to kernel page protection
munging code.

The huge vmap code holds the same lock over a GFP\_KERNEL allocation,
which is a no-no now that reclaim can take it. That allocation is in a
page table \*free\* path and ends up being for dubious purposes\[1\].
Basically, it tries to avoid hardware setting Accessed=1 in page table
entries that are unreachable by the hardware, a non-issue.

Remove the PMD copy. Detach the original PMD page at the PUD, flush
the mid-level caches, and free the PTE tables straight from the
detached PMD page. With no allocation left, the locking issue is gone.

Lockdep splat/analysis:

  WARNING: possible circular locking dependency detected
  7.3.0-rc3-f6e7b42bf05b+ \#183 Tainted: G     U
  ------------------------------------------------------
  kswapd0/269 is trying to acquire lock:
  ((init\_mm).mmap\_lock){++++}-{4:4}, at: change\_page\_attr\_set\_clr+0x29a/0x4a0
  but task is already holding lock:
  (pool\_shrink\_rwsem){.+.+}-{4:4}, at: ttm\_pool\_shrink+0xb2/0x330 \[ttm\]
  Chain exists of:
    (init\_mm).mmap\_lock --\> fs\_reclaim --\> pool\_shrink\_rwsem

The cycle is built from three edges:

  1) pool\_shrink\_rwsem -\> (init\_mm).mmap\_lock

     The TTM shrinker restores the caching attribute of every page it
     frees, while holding pool\_shrink\_rwsem:

       ttm\_pool\_shrink()
       -\> ttm\_pool\_dispose\_list()
       -\> ttm\_pool\_free\_page()
       -\> set\_pages\_wb()
       -\> change\_page\_attr\_set\_clr()   \[ init\_mm mmap read lock \]

  2) fs\_reclaim -\> pool\_shrink\_rwsem

     The same shrinker, called from reclaim.

  3) (init\_mm).mmap\_lock -\> fs\_reclaim

     ioremap() installing a huge PUD mapping over an existing PMD table:

       ioremap\_page\_range()
       -\> vmap\_range\_noflush()
       -\> vmap\_try\_huge\_pud()          \[ init\_mm mmap read lock \]
       -\> pud\_free\_pmd\_page()
       -\> \_\_get\_free\_page(GFP\_KERNEL)  \[ enters reclaim \]

\[ dhansen: Lots of changelog munging/trimming and merged comments from my
	   version of the fix. \]

## Affected and fixed versions

- Linux: \>= e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab, \< d3c2d2692bdf4af94bb27bc7a3aa0a348a567606; \>= cc73b2043d106b467accd38e9b1fc09e0607c056, \< f38c57a28ebbd057471573e39555d5aa11ab03cf; \>= d5d8b8662e6e5a565b47a0388640e88402f23274, \< e3ee38c1bc0b11a8d3e63dce7050759b61864286 (cvelist)
- Linux: \>= 6.18.53, \< 6.18.56; \>= 7.2.7, \< 7.2.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-98939.md
Affected: Linux >= e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab, < d3c2d2692bdf4af94bb27bc7a3aa0a348a567606; >= cc73b2043d106b467accd38e9b1fc09e0607c056, < f38c57a28ebbd057471573e39555d5aa11ab03cf; >= d5d8b8662e6e5a565b47a0388640e88402f23274, < e3ee38c1bc0b11a8d3e63dce7050759b61864286; Linux >= 6.18.53, < 6.18.5…
Fixed in: Linux 6.18.56, Linux 7.2.10

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= e21a9ea81426a85fdb0cdcfcc99d5d9c16b402ab, \< d3c2d2692bdf4af94bb27bc7a3aa0a348a567606; \>= cc73b2043d106b467accd38e9b1fc09e0607c056, \< f38c57a28ebbd057471573e39555d5aa11ab03cf; \>= d5d8b8662e6e5a565b47a0388640e88402f23274, \< e3ee38c1bc0b11a8d3e63dce7050759b61864286; Linux \>= 6.18.53, \< 6.18.56; \>= 7.2.7, \< 7.2.10.

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

Yes. Fixed in Linux 6.18.56, Linux 7.2.10. Upgrade Linux to 7.2.10 or later.

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

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/d3c2d2692bdf4af94bb27bc7a3aa0a348a567606>
- other: <https://git.kernel.org/stable/c/f38c57a28ebbd057471573e39555d5aa11ab03cf>
- other: <https://git.kernel.org/stable/c/e3ee38c1bc0b11a8d3e63dce7050759b61864286>

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

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