CVE-2026-98126·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.2.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.2.7
Fixed in: 7.2.7
How to fix this CVE
Update your Linux kernel to version 7.2.7 or later to resolve this resource limit bypass vulnerability. The fix ensures that CIFS file zero-range operations properly validate file size limits before extending the end-of-file marker, preventing unauthorized file growth beyond configured resource limits. Systems with CIFS mounts should prioritize this update to maintain proper resource accounting and security posture.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r
- Confirm vulnerable range: if output is between 6.19 and 7.2.6, your system is affected
- Verify CIFS module is loaded: lsmod | grep cifs
- After patching, confirm new version: uname -r (should be 7.2.7 or later)
FAQ
What is CVE-2026-98126?
This vulnerability affects the Linux kernel's CIFS client implementation, where the fallocate() syscall with FALLOC_FL_ZERO_RANGE flag could bypass RLIMIT_FSIZE resource limits and extend file sizes beyond the caller's permitted threshold, violating resource accounting.
Is CVE-2026-98126 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available.
What versions of Kernel are affected by CVE-2026-98126?
Kernel versions 6.19 through 7.2.6 are vulnerable. The fix is available in version 7.2.7 and later.
How do I check if my server is vulnerable to CVE-2026-98126?
Run 'uname -r' to check your kernel version. If it reports a version between 6.19 and 7.2.6 and CIFS is in use (verify with 'lsmod | grep cifs'), your system is affected.
Does Defensia detect CVE-2026-98126?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-98126 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/06a4f9049cb6dc319bceec2dc813ba89add8b828
- https://git.kernel.org/stable/c/3673f057b64abfa957e8ae84448db69369a5091a
- https://git.kernel.org/stable/c/5fbd8848f2e25c8163896ec52863df2305a3bb63
- https://git.kernel.org/stable/c/88972e35750792e717af287dc71f42a03b5cbce4
- https://git.kernel.org/stable/c/f320ca20c273a26cd779bdb2b2e4b076a95c76f6
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98126. Free for 1 server.
Get started free