-

CVE-2026-99738

mm/shmem: preserve allocation errors when swapping in large entries

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

mm/shmem: preserve allocation errors when swapping in large entries

shmem_swapin_folio() adjusts swap to the requested slot within a large
swap entry before allocating a folio. If allocation or charging fails,
the error path compares this adjusted value with the original entry
still stored in the XArray in shmem_confirm_swap().

Unless the index is at the start of the entry, this turns -ENOMEM into
-EEXIST even though nothing changed.

The caller retries -EEXIST, so persistent allocation failures can leave
the task spinning instead of returning the error.

Restore swap to index_entry on allocation failure so the existing error
path checks the original entry. This preserves the allocation error if
the entry is unchanged and still retries if it changed concurrently.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 91ab656ece137c368a3189dfd42f8c9203a6285c
Version < 265dfa2525817d3be437576505186beb623384bf
Status affected
Version 91ab656ece137c368a3189dfd42f8c9203a6285c
Version < 680afc486db200e7b08307cb28be4f90766afcff
Status affected
Version 91ab656ece137c368a3189dfd42f8c9203a6285c
Version < f4ce23b1feef16d435aa1188b6c2a637a5373ed5
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 6.17
Status affected
Version 0
Version < 6.17
Status unaffected
Version <= 6.18.*
Version 6.18.65
Status unaffected
Version <= 7.3.*
Version 7.3.5
Status unaffected
Version <= *
Version 7.4-rc2
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.16% 0.048
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/680afc486db200e7b08307cb28be4f90766afcff
https://git.kernel.org/stable/c/f4ce23b1feef16d435aa1188b6c2a637a5373ed5
https://git.kernel.org/stable/c/265dfa2525817d3be437576505186beb623384bf