CVE-2026-98126

smb/client: validate new EOF for zero range

No CVSS score yet EPSS 0.16%

Published 25 Sep 2026 Updated 21 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98126

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

smb/client: validate new EOF for zero range

When FALLOC_FL_ZERO_RANGE is used without FALLOC_FL_KEEP_SIZE, smb3_zero_range() may extend EOF without checking RLIMIT_FSIZE, allowing the file to grow beyond the caller's file-size limit.

Fix this by calling inode_newsize_ok() before sending the zero-range request when the operation would extend EOF.

Reproducer, using a file on a CIFS mount:

bash -c ' FILE=/mnt/cifs/repro

trap "" SIGXFSZ ulimit -f 3072

truncate -s 2M "$FILE" fallocate --zero-range -o 0 -l 4M "$FILE" echo "fallocate rc=$?" stat -c "file size=%s" "$FILE" '

Before this change, the operation succeeds despite the 3 MiB limit:

fallocate rc=0 file size=4194304

After this change, fallocate fails and leaves the file at 2 MiB.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 72c419d9b073628d3b5b0b2fc787b724f1a8c726, before 5fbd8848f2e25c8163896ec52863df2305a3bb63
affected from 72c419d9b073628d3b5b0b2fc787b724f1a8c726, before 3673f057b64abfa957e8ae84448db69369a5091a
affected from 72c419d9b073628d3b5b0b2fc787b724f1a8c726, before 06a4f9049cb6dc319bceec2dc813ba89add8b828
affected from 72c419d9b073628d3b5b0b2fc787b724f1a8c726, before f320ca20c273a26cd779bdb2b2e4b076a95c76f6
affected from 72c419d9b073628d3b5b0b2fc787b724f1a8c726, before 88972e35750792e717af287dc71f42a03b5cbce4
Other versions: unaffected
Linux
affected 5.1
unaffected before 5.1
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.111 up to and including 6.12.*
unaffected from 6.18.53 up to and including 6.18.*
unaffected from 7.2.7 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-98126 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98126

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

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