# CVE-2026-89757: mm/mglru: fix and remove redundant unevictable folio handling

> 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.21% (percentile 7, 2026-11-26)
- **Published:** 2026-09-11T19:46:59.830Z
- **Modified:** 2026-10-30T13:20:28.217Z

## Who should check

- Anyone running Linux \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< e9f2160081a1e3ebb285bd71be3382abaeb8390a; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< b1d7c69e6c7d3ec47513b911ce7529e56d183dad; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 49193dac48d30eee2a21da88a7262d52a7feefae; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 54a58d6656dd403b686b247f0bad8507cbfb45df; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 15d3a2a71c8bf7333d019d249ee33669e69e4275; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< f7e698e326b239a91ea15844817551921209e826
- Anyone running Linux 6.1

## Description

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

mm/mglru: fix and remove redundant unevictable folio handling

sort\_folio() has a shortcut for moving folios that are no longer evictable
but are still sitting on a generation list.  However, this shortcut is
buggy.  It does not follow the PG\_lru usage convention, and it has a more
serious issue.

Unevictable folios are not threaded on lists\[LRU\_UNEVICTABLE\], so that
folio-\>lru can be reused to hold folio-\>mlock\_count (see the comment in
lruvec\_init()).  Hence lruvec\_add\_folio() skips the list\_add() for them,
and every other place that turns a folio unevictable initialises
mlock\_count explicitly: lru\_add() sets it to 0, \_\_mlock\_folio() and
\_\_mlock\_new\_folio() set it to !!folio\_test\_mlocked(folio).  sort\_folio()
sets nothing, and the lru\_gen\_del\_folio() right above it may have already
poisoned folio-\>lru via list\_del(), so mlock\_count ends up aliasing
LIST\_POISON2, which reads as 0x122, i.e.  290.  The result is user
visible.  On munlock, \_\_munlock\_folio() decrements that bogus count, finds
it still non-zero and bails out before clearing PG\_mlocked, so the folio
remains unevictable and the Mlocked accounting stays inflated until the
folio is freed.

The shortcut also touches the LRU flags in the wrong order.  It calls
lru\_gen\_del\_folio() while PG\_lru is still set, so a concurrent
folio\_test\_clear\_lru() (e.g.  compaction, folio\_isolate\_lru()) can succeed
on a folio that has already been taken off the generation list, which may
lead to unexpected behavior.

So fix it by isolating them as common folios and letting the generic
shrink path cull them.  This matches the classical LRU behavior, and there
should be no visible effect on the generic eviction or isolation behavior.

There is no performance concern either, such a folio goes through this
once, and then it is off the generation lists for good.

## Affected and fixed versions

- Linux: \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< e9f2160081a1e3ebb285bd71be3382abaeb8390a; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< b1d7c69e6c7d3ec47513b911ce7529e56d183dad; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 49193dac48d30eee2a21da88a7262d52a7feefae; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 54a58d6656dd403b686b247f0bad8507cbfb45df; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 15d3a2a71c8bf7333d019d249ee33669e69e4275; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< f7e698e326b239a91ea15844817551921209e826 (cvelist)
- Linux: 6.1 (cvelist)

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

Details: https://flawdb.com/CVE-2026-89757.md
Affected: Linux >= ac35a490237446b71e3b4b782b1596967edd0aa8, < e9f2160081a1e3ebb285bd71be3382abaeb8390a; >= ac35a490237446b71e3b4b782b1596967edd0aa8, < b1d7c69e6c7d3ec47513b911ce7529e56d183dad; >= ac35a490237446b71e3b4b782b1596967edd0aa8, < 49193dac48d30eee2a21da88a7262d52a7feefae; >= ac35a490237446b71e3b4b7…
Fixed in: Linux 49193dac48d30eee2a21da88a7262d52a7feefae, Linux 54a58d6656dd403b686b247f0bad8507cbfb45df, Linux 15d3a2a71c8bf7333d019d249ee33669e69e4275

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< e9f2160081a1e3ebb285bd71be3382abaeb8390a; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< b1d7c69e6c7d3ec47513b911ce7529e56d183dad; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 49193dac48d30eee2a21da88a7262d52a7feefae; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 54a58d6656dd403b686b247f0bad8507cbfb45df; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< 15d3a2a71c8bf7333d019d249ee33669e69e4275; \>= ac35a490237446b71e3b4b782b1596967edd0aa8, \< f7e698e326b239a91ea15844817551921209e826; Linux 6.1.

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

Yes. Fixed in Linux 49193dac48d30eee2a21da88a7262d52a7feefae, Linux 54a58d6656dd403b686b247f0bad8507cbfb45df, Linux 15d3a2a71c8bf7333d019d249ee33669e69e4275. No fix listed yet: follow the vendor advisory.

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

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/e9f2160081a1e3ebb285bd71be3382abaeb8390a>
- other: <https://git.kernel.org/stable/c/b1d7c69e6c7d3ec47513b911ce7529e56d183dad>
- other: <https://git.kernel.org/stable/c/49193dac48d30eee2a21da88a7262d52a7feefae>
- other: <https://git.kernel.org/stable/c/54a58d6656dd403b686b247f0bad8507cbfb45df>
- other: <https://git.kernel.org/stable/c/15d3a2a71c8bf7333d019d249ee33669e69e4275>
- other: <https://git.kernel.org/stable/c/f7e698e326b239a91ea15844817551921209e826>

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

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