VDB

CVE-2026-89757

CVE-2026-89757 PUBLISHED

mm/mglru: fix and remove redundant unevictable folio handling

Reported by linux · Published September 11, 2026

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.

EPSS 0.21% · 11.4th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perf6.12Amazon Linux1:6.12.114-139.210.amzn2023
perf6.12Amazon Linux1:6.12.114-139.210.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.114-139.210.amzn2023
kernel6.18-headersAmazon Linux1:6.18.51-120.162.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.114-139.210.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.51-120.162.amzn2023
kernel6.12-headersAmazon Linux1:6.12.114-139.210.amzn2023
kernel-livepatch-6.12.114-139.210Amazon Linux1:1.0-0.amzn2023
python3-perf6.18Amazon Linux1:6.18.51-120.162.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.51-120.162.amzn2023
perf6.18Amazon Linux1:6.18.51-120.162.amzn2023
kernel6.12-develAmazon Linux1:6.12.114-139.210.amzn2023

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.21%
11.4th percentile

Affected products

VendorProductVersions
LinuxLinuxac35a490237446b71e3b4b782b1596967edd0aa8, ac35a490237446b71e3b4b782b1596967edd0aa8, ac35a490237446b71e3b4b782b1596967edd0aa8
LinuxLinux6.1, 0, 6.1.191
amazon:2023python3-perf6.120
amazon:2023perf6.120
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.12-tools0
amazon:2023microvm-kernel6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel-livepatch-6.12.114-139.2100
amazon:2023python3-perf6.180
amazon:2023kernel6.18-tools-devel0
amazon:2023perf6.180
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra-common0
linuxlinux_kernel6.1, 6.1, 6.1
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool6.120
amazon:2023kernel6.18-devel0
amazon:2023kernel6.18-modules-extra-common0

…and 7 more

Timeline

  • Sep 11, 2026 CVE Published
  • Sep 12, 2026 EPSS Score (15 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-89757
vulnetix vdb fixes CVE-2026-89757

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89757/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›