9.8
CRITICAL CVSS 3.1
CVE-2026-74591
mm/filemap: __filemap_add_folio() restore index before retrying
Description

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.

INFO

Published Date :

Aug. 22, 2026, 4:16 p.m.

Last Modified :

Oct. 14, 2026, 1:10 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-74591 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Address race condition in file mapping by restoring index before retry.
  • Restore original xas.xa_index at loop bottom.
  • Re-evaluate after reacquiring lock.
  • Apply vendor patches for Linux kernel.
  • Update kernel to resolved version.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-74591.

URL Resource
https://git.kernel.org/stable/c/267ecd2eb7759c26f1a026eb0a5b231071534c9c
https://git.kernel.org/stable/c/4917e3ebcab50f0265e8ca01c8567de4c4a47511
https://git.kernel.org/stable/c/86da3f7e1e609e1e8bfbab198af68467c5a015a5
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-74591 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-74591 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-74591 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-74591 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 14, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/filemap: __filemap_add_folio() restaurar índice antes de reintentar En el bucle de división de conflicto de __filemap_add_folio(), xas_set_order() se aplica repetidamente: cada aplicación modifica xas.xa_index, redondeándolo hacia abajo según el split_order intentado en esa etapa; y si todo va según lo previsto, finalmente (o inmediatamente) converge en un xas_try_split() al folio_order requerido, con xas.xa_index ahora igual que index; entonces xas_store() coloca el nuevo folio en el xarray allí. Pero si se necesitaba un nuevo nodo, y la asignación GFP_NOWAIT no obtuvo uno, el bloqueo se libera, xas_nomem() se usa para asignar, y la secuencia se reintenta. Si (esa parte de) el xarray no cambia cuando se vuelve a adquirir el bloqueo, no hay problema. Pero ¿qué pasa si el conflicto fue resuelto mientras tanto por otro hilo (quizás incluso haciendo lo mismo, insertando un folio en ese mismo índice)? ¿No hay peligro de ahora poner nuestro folio en el xarray en un índice intermedio redondeado hacia abajo? Con el error !folio_contains() a continuación, cuando CONFIG_DEBUG_VM=y está comprobando eso. Solucione esto con un xas_set_order() para restaurar el xas.xa_index original al final del bucle, para que el reintento realice una reevaluación completa después de volver a adquirir el bloqueo, y no pueda alcanzar xas_store() con el índice incorrecto. La producción estaba sufriendo de SIGILLs y SIGSEGVs raros, texto ejecutable encontrado a una página de donde debía estar, error !folio_contains() activado cuando la depuración estaba habilitada: síntomas no vistos desde que este parche entró.
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 25, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 22, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '200a89c159a7a416115e6e309183c82183bf98aa', 'lessThan': '4917e3ebcab50f0265e8ca01c8567de4c4a47511', 'versionType': 'git'}, {'status': 'affected', 'version': '200a89c159a7a416115e6e309183c82183bf98aa', 'lessThan': '267ecd2eb7759c26f1a026eb0a5b231071534c9c', 'versionType': 'git'}, {'status': 'affected', 'version': '200a89c159a7a416115e6e309183c82183bf98aa', 'lessThan': '86da3f7e1e609e1e8bfbab198af68467c5a015a5', 'versionType': 'git'}], 'programFiles': ['mm/filemap.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.45', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.9', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['mm/filemap.c'], 'defaultStatus': 'affected'}]
    Added Description 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.
    Added Reference https://git.kernel.org/stable/c/267ecd2eb7759c26f1a026eb0a5b231071534c9c
    Added Reference https://git.kernel.org/stable/c/4917e3ebcab50f0265e8ca01c8567de4c4a47511
    Added Reference https://git.kernel.org/stable/c/86da3f7e1e609e1e8bfbab198af68467c5a015a5
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.