VDB

CVE-2026-74591

CVE-2026-74591 PUBLISHED CVSS 9.8 CRITICAL

mm/filemap: __filemap_add_folio() restore index before retrying

Reported by linux · Published August 22, 2026

In the Linux kernel, the following vulnerability has been resolved: mm/filemap: __filemap_add_folio() restore index before retrying In __filemap_add_folio()'s split-a-conflict loop, xas_set_order() is applied repeatedly: each application modifies xas.xa_index, rounding it down according to the split_order attempted at that stage: and if all goes as intended, it eventually (or immediately) converges on an xas_try_split() to the required folio_order, with xas.xa_index now the same as index: then xas_store() puts the new folio into the xarray there. But if a new node was needed, and GFP_NOWAIT allocation did not get one, the lock is dropped, xas_nomem() used to allocate, and sequence retried. If (that part of) the xarray is unchanged when the lock is reacquired, no problem. But what if the conflict was meanwhile resolved by another thread (perhaps even doing the same thing, inserting a folio at that same index)? Isn't there a danger of now putting our folio into the xarray at an intermediate rounded-down index? With !folio_contains() bug to follow, when CONFIG_DEBUG_VM=y is checking for that. Fix this with an xas_set_order() to restore the original xas.xa_index at the bottom of the loop, so the retry does a full re-evaluation after reacquiring the lock, and cannot reach xas_store() with the wrong index. Production was suffering from rare SIGILLs and SIGSEGVs, executable text found a page away from where it belonged, !folio_contains() bug hit when debug enabled: symptoms not seen since this patch went in.

EPSS 0.44% · 39.2th percentile

Fixed versions

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

PackageEcosystemFixed in
kernel6.18-modules-extraAmazon Linux1:6.18.48-107.148.amzn2023
kernel6.18Amazon Linux1:6.18.48-107.148.amzn2023

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.44%
39.2th percentile

Affected products

VendorProductVersions
LinuxLinux200a89c159a7a416115e6e309183c82183bf98aa, 200a89c159a7a416115e6e309183c82183bf98aa, 200a89c159a7a416115e6e309183c82183bf98aa
LinuxLinux6.15, 0, 6.18.45
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.180
linuxlinux_kernel6.15, 6.15, 6.15
amazon:2023kernel-livepatch-6.18.48-107.1480
amazon:2023kernel6.18-headers0
LinuxLinux200a89c159a7a416115e6e309183c82183bf98aa, 7.2, 7.1.9
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-tools0
amazon:2023python3-perf6.180
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.180
amazon:2023perf6.180
amazon:2023kernel6.18-devel0

Timeline

  • Aug 22, 2026 Coalition ESS Score
  • Aug 22, 2026 CVE Published
  • Aug 23, 2026 EPSS Score (30 in total, the first dated here)
  • Sep 3, 2026 Security Advisory
  • Oct 14, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-74591
vulnetix vdb fixes CVE-2026-74591

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-74591/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 ›