CVE-2026-99738 mm/shmem: preserve allocation errors when swapping in large entries

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-99738?

CVE-2026-99738 is a vulnerability in Linux, published on 20 Nov 2026.

Official description

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.

Which versions are affected by CVE-2026-99738?

Status by vendor 5
WhoReleaseStatusPackages
Red Hat8not affectedbpftool, kernel, kernel-abi-stablelists and 43 more
pkg:rpm/redhat/bpftool?distro=rhel-8
pkg:rpm/redhat/kernel?distro=rhel-8
pkg:rpm/redhat/kernel-abi-stablelists?distro=rhel-8
Red Hat9not affectedbpftool, kernel, kernel-64k and 104 more
pkg:rpm/redhat/bpftool?distro=rhel-9
pkg:rpm/redhat/kernel?distro=rhel-9
pkg:rpm/redhat/kernel-64k?distro=rhel-9
Red Hat10deferredkernel, kernel-64k, kernel-64k-core and 73 more
pkg:rpm/redhat/kernel?distro=rhel-10
pkg:rpm/redhat/kernel-64k?distro=rhel-10
pkg:rpm/redhat/kernel-64k-core?distro=rhel-10
Red Hatels/6end of lifekernel, kernel-abi-whitelists, kernel-bootwrapper and 10 more
pkg:rpm/redhat/kernel?distro=rhel-6
pkg:rpm/redhat/kernel-abi-whitelists?distro=rhel-6
pkg:rpm/redhat/kernel-bootwrapper?distro=rhel-6
Red Hatels/7not affectedbpftool, kernel, kernel-abi-whitelists and 23 more
pkg:rpm/redhat/bpftool?distro=rhel-7
pkg:rpm/redhat/kernel?distro=rhel-7
pkg:rpm/redhat/kernel-abi-whitelists?distro=rhel-7

How do I fix CVE-2026-99738?

Upgrade to a fixed version.

Is CVE-2026-99738 being exploited?

There is no known exploitation of CVE-2026-99738 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-99738, DEBIAN-CVE-2026-99738, GHSA-p2c5-p9qm-m686, UBUNTU-CVE-2026-99738.

Is CVE-2026-99738 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free