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
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: File size limit bypass leading to denial of service
Action: Patch Quickly
AI Analysis

Impact

The Linux kernel’s SMB client handling of the FALLOC_FL_INSERT_RANGE operation in smb3_insert_range() fails to validate that the new file length (original size plus inserted length) remains within limits such as RLIMIT_FSIZE, s_maxbytes, or the loff_t range. Because this check is missing, an attacker can continuously insert data into a file until it exceeds system quotas or overflows internal kernel structures. This produces a denial‑of‑service situation where file operations fail or the file system becomes inconsistent, potentially exposing the system to further compromise if the overflow can be exploited to corrupt kernel memory.

Affected Systems

All Linux kernel configurations that mount CIFS/SMB file systems—including any distribution’s kernel that includes the SMB client module—are affected. No specific vendor product versions are listed; the bug applies to any kernel revision before the fix was merged. The vulnerability manifests when an SMB share is reachable by a process that can execute the FALLOC_FL_INSERT_RANGE operation.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in KEV, so the current exploitation probability is unknown from public metrics. Because the flaw can be triggered by any user with write access to an SMB share, the exploitability is moderate, relying on normal file‑write capabilities. The impact is primarily denial of service and resource exhaustion; attackers can scale a file beyond RLIMIT_FSIZE or the kernel’s maximum file size, leading to application failure or kernel crashes. The lack of a public exploit does not reduce the risk, as the required inputs are simple and widely available.

Generated by OpenCVE AI on September 25, 2026 at 12:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the FALLOC_FL_INSERT_RANGE validation fix and any associated back‑ports.
  • Reboot the system or reload the kernel after applying the update to ensure the new code is active.
  • Restrict write permissions on CIFS/SMB shares, enforce stricter filesystem quotas and RLIMIT_FSIZE policies, and monitor for abnormal file‑size growth to mitigate potential abuse.

Generated by OpenCVE AI on September 25, 2026 at 12:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190

Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
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
Title smb/client: validate new EOF for insert range
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T10:36:08.406Z

Reserved: 2026-09-25T10:25:14.318Z

Link: CVE-2026-98127

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:44.050

Modified: 2026-09-25T11:17:44.050

Link: CVE-2026-98127

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T12:45:16Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound