CVE-2026-98127
Received Received - Intake

Integer Overflow in Linux Kernel SMB Client

Vulnerability report for CVE-2026-98127, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-25

Last updated on: 2026-09-25

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: smb/client: validate new EOF for insert range smb3_insert_range() does not check if the new file size (i_size + len) is valid. This allows FALLOC_FL_INSERT_RANGE to bypass RLIMIT_FSIZE, exceed s_maxbytes, or produce a size outside the loff_t range. Use check_add_overflow() to calculate the new EOF. Validate it with inode_newsize_ok() before modifying the file. Reproducer, using a file on a CIFS mount: bash -c ' FILE=/mnt/cifs/repro trap "" SIGXFSZ ulimit -f 3072 # RLIMIT_FSIZE = 3 MiB # A regular write is stopped at 3 MiB. dd if=/dev/zero of="$FILE" bs=1M count=4 status=none stat -c "size after write: %s" "$FILE" # Insert 2 MiB into a 2 MiB file. truncate -s 2M "$FILE" fallocate -i -o 0 -l 2M "$FILE" stat -c "size after insert: %s" "$FILE" ' Before this change, the regular write stops at the 3 MiB limit, but insert range grows the file to 4 MiB: dd: error writing '/mnt/cifs/repro': File too large size after write: 3145728 size after insert: 4194304 After this change, insert range also fails at the limit and leaves the 2 MiB file unchanged: dd: error writing '/mnt/cifs/repro': File too large size after write: 3145728 fallocate: fallocate failed: File too large size after insert: 2097152

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-25
Last Modified
2026-09-25
Generated
2026-09-25
AI Q&A
2026-09-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves the smb/client component where smb3_insert_range() fails to validate the new file size after an insert operation. This can allow the file size to exceed limits set by RLIMIT_FSIZE or s_maxbytes, or even go beyond the loff_t range, potentially bypassing size restrictions.

Detection Guidance

To detect this vulnerability, check if your Linux kernel version is affected by verifying the presence of the smb3_insert_range() function without proper size validation. Run uname -a to check the kernel version and compare it against patched versions. If you can reproduce the issue using the provided bash script on a CIFS mount, the system is likely vulnerable.

Impact Analysis

An attacker could exploit this to bypass file size limits, causing files to grow beyond intended boundaries. This might lead to disk space exhaustion, denial of service, or unauthorized data growth on systems using CIFS mounts.

Mitigation Strategies

Apply the latest kernel patches that include the fix for smb3_insert_range() size validation. If patching is not immediately possible, avoid using FALLOC_FL_INSERT_RANGE on CIFS mounts or enforce strict file size limits. Monitor for unusual file growth on CIFS shares as a potential sign of exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-98127. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart