CVE-2026-99137

cifs: don't update i_size in cifs_do_truncate without a cached handle

No CVSS score yet EPSS 0.21%

Published 28 Oct 2026 Updated 28 Oct 2026 CNA: Linux

Check your servers for CVE-2026-99137

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-99137 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:

cifs: don't update i_size in cifs_do_truncate without a cached handle

If find_writable_file() returns null, cifs_file_flush will return 0 without issuing set_file_size, and the outer 'if (!rc)' block will set i_size to 0 before telling the server to truncate. If the cifs_open() then fails, the inode will have size 0, while the server file is unchanged.

Move the netfs_resize_file() and cifs_setsize() into the 'if (cfile)', so they only run after a successful set_file_size.

In the no-handle else branch, evict stale pages with truncate_inode_pages before the O_TRUNC open to dispose of old cache pages, and let the open response set the i_size.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 110fee6b9bb58a5c50047fc2594d415f741b591e, before 04d020b3d0b58a1b7e116900e4095b96a7f4e11a
affected from 110fee6b9bb58a5c50047fc2594d415f741b591e, before 88a51743cd8094b76fd910f53f718747c7729cc8
affected from 110fee6b9bb58a5c50047fc2594d415f741b591e, before fe39cd9d48f2346605f3746e0cc19e89d5f373eb
Other versions: unaffected
Linux
affected 6.18
unaffected before 6.18
unaffected from 6.18.59 up to and including 6.18.*
unaffected from 7.2.13 up to and including 7.2.*
unaffected 7.3 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-99137 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99137

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-99137
trivy image --scanners vuln IMAGE | grep CVE-2026-99137

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-99137 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.