CVE-2026-99738

Source
https://cve.org/CVERecord?id=CVE-2026-99738
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99738.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99738
Published
2026-11-20T05:51:11Z
Modified
2026-11-20T07:01:15Z
Summary
mm/shmem: preserve allocation errors when swapping in large entries
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99738.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
91ab656ece137c368a3189dfd42f8c9203a6285c
Fixed
680afc486db200e7b08307cb28be4f90766afcff
Fixed
f4ce23b1feef16d435aa1188b6c2a637a5373ed5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99738.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.0
Fixed
7.3.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99738.json"