# CVE-2026-74674: mm: fix incorrect flush address in direct page table reclaim

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **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.17% (percentile 3, 2026-11-26)
- **Published:** 2026-08-22T15:32:43.670Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, \< 0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a; \>= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, \< 478a1c3abebfc717db0d1281a9cdd7befafee542
- Anyone running Linux 7.0

## Description

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

mm: fix incorrect flush address in direct page table reclaim

When zap\_pte\_range reclaims a page table, it does:

    pte\_free\_tlb(tlb, pmd\_pgtable(pmdval), addr);

and this is unconditionally wrong: if this code executes, addr \*always\*
points one past the end of the range covered by the table.  The addr
parameter is used to flush the TLB (really the paging-structure-cache)
to drop references to the to-be-freed table, and any architecture that
cares about the parameter will flush the wrong address.  (But they'll
still free the correct page).

I think it's worth contemplating why the kernel works at all.

If we hit the offending line of code, we will first clear the PMD entry
(line 1954, zap\_empty\_pte\_table), then we will issue pending flushes if
force\_flush is set (tlb\_flush\_mmu\_tlbonly(tlb)), then we will skip the
retry on line 1979 (phew!), and then we will do the offending
pte\_free\_tlb call.  \*Or\* we will clear the PMD entry immediately before
pte\_free\_tlb (line 1983, zap\_pte\_table\_if\_empty).

If we have any pending flushes (i.e. we actually zapped any last-level
entries) at the time we clear the PMD entry, then the flush really ought
to flush all references to the table (Linus certainly seems to think it
will on all architectures \[0\]).

The condition under which we have no accumulated flushes at the time of
the clear is very complex (the whole zap\_pte\_range function has absurdly
complex control flow).  If we do hit the bad case, then we will end up
clearing the PMD entry after the last time the range is flushed, and any
CPU is free to cache a reference to the (empty) page table.  If this
happens due to an ordinary read or write, it would segfault, so it would
be rare.  But the cache could be speculatively filled as well.  Then
we'll flush the wrong address and then free and possibly reuse the
table.

On x86, even flushing the wrong address works on non-KPTI Intel systems
because INVLPG flushes \*all\* paging-structure-caches, not just the ones
for the target address.  But INVPCID does not, and flush\_tlb\_one\_user
will use INVPCID if it's available.  And then we're toast.  AMD systems
are more susceptible: we set the EFER.TCE bit, which makes even INVLPG
only flush the target address.

I think this might fix an issue in ripgrep reported here:
https://github.com/BurntSushi/ripgrep/issues/3494

\[0\] https://lore.kernel.org/all/CA+55aFzBggoXtNXQeng5d\_mRoDnaMBE5Y+URs+PHR67nUpMtaw@mail.gmail.com/T/\#u

## Affected and fixed versions

- Linux: \>= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, \< 0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a; \>= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, \< 478a1c3abebfc717db0d1281a9cdd7befafee542 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-74674.md
Affected: Linux >= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, < 0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a; >= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, < 478a1c3abebfc717db0d1281a9cdd7befafee542; Linux 7.0
Fixed in: Linux 0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a, Linux 478a1c3abebfc717db0d1281a9cdd7befafee542

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

There is no confirmed exploitation: CVE-2026-74674 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-11-26).

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

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

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

Linux \>= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, \< 0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a; \>= 4c640eb4181cf8de74c8b9e7c9cf16bf8d26b73e, \< 478a1c3abebfc717db0d1281a9cdd7befafee542; Linux 7.0.

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

Yes. Fixed in Linux 0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a, Linux 478a1c3abebfc717db0d1281a9cdd7befafee542. Upgrade Linux to 478a1c3abebfc717db0d1281a9cdd7befafee542 or later.

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

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/0b8ff21cbda8808c86b18f1b0ca2d0025af9a80a>
- other: <https://git.kernel.org/stable/c/478a1c3abebfc717db0d1281a9cdd7befafee542>

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

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