CVE-2026-99736

mm/shmem: fix accounting of swapin-error markers

No CVSS score yet EPSS 0.17%

Published 20 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99736

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99736 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

mm/shmem: fix accounting of swapin-error markers

A failed swap read replaces the swap entry with a swapin-error marker in the page-cache and subtracts its pages from "alloced" and "swapped"; however, it leaves their block charge in place.

Removing the marker during truncate then subtracts from "swapped" again. This can underflow the counters or make swapped reach zero while other pages remain swapped out, causing swapoff to loop without finding them.

When installing the marker, subtract only from "swapped" and let shmem_recalc_inode() reduce "alloced" and release the block charge.

Make shmem_free_swap() report successful removal separately from the number of swap pages freed, so removing a swapin-error marker does not subtract from "swapped" again.

It's a bit confusing, but replacing a swapped out page by a swapin-error marker in shmem_set_folio_swapin_error() behaves as follows:

Initially: alloced=1, swapped=1, nrpages=0 Calling shmem_recalc_inode(inode, 0, -1) -> swapped = 0 -> freed = 1 - 0 - 0 = 1 -> alloced -= freed -> alloced=0, swapped=0, block charge released

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.93% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, before 00e3efd5d74d18447438edfd2532cd4100fd5756
affected from 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, before 5e09340badaf982a2cb73e41da715fcdd0e2eb7f
affected from 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, before 77ad4ac35977d081f2b69f1c73ae3b210124b1fc
affected from 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, before f49d40a699bdaf68bbb307f1fa207512520ce982
affected from 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, before d4bc03eaeef281c460370dfd57e1a671b787edd4
affected from 6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61, before 66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09
Other versions: unaffected
Linux
affected 5.19
unaffected before 5.19
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.119 up to and including 6.12.*
unaffected from 6.18.65 up to and including 6.18.*
unaffected from 7.3.5 up to and including 7.3.*
unaffected 7.4-rc2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99736 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99736

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99736
trivy image --scanners vuln IMAGE | grep CVE-2026-99736

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99736 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.