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: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service caused by bypassing file size limits in SMB client
Action: Apply patch
AI Analysis

Impact

The Linux kernel’s SMB client incorrectly handles the FALLOC_FL_INSERT_RANGE operation. The smb3_insert_range() function does not verify that the new file size (original size plus the inserted length) stays within limits such as "RLIMIT_FSIZE", s_maxbytes, or the loff_t range. Because this check is missing, an attacker can insert data until the file exceeds the allowed size, causing the operation to fail and creating a denial‑of‑service scenario. The vulnerability does not provide a direct path to arbitrary code execution or memory corruption. Based on the description, it is inferred that the likely attack vector is through a writable SMB share that invokes FALLOC_FL_INSERT_RANGE.

Affected Systems

All Linux kernel configurations that mount CIFS/SMB shares—and that include the SMB client module—are affected. The flaw exists in any kernel revision before the fix was merged; no specific vendor or distribution version is singled out. The issue manifests when the FALLOC_FL_INSERT_RANGE operation is performed on a file located on an SMB share accessible to an attacker.

Risk and Exploitability

The CVSS score of 5.5 indicates a moderate severity. The EPSS score of <1% shows a very low probability of exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. However, the attack requires only normal file‑write privileges to an SMB share, making the exploitation condition relatively easy for an adversary who can reach a writable share. The primary impact is service disruption due to file size limit bypass, potentially leading to application errors or system instability.

Generated by OpenCVE AI on September 30, 2026 at 11:14 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the FALLOC_FL_INSERT_RANGE validation fix and any associated back‑ports.
  • Reboot or reload the kernel after installing the update to ensure the new code is active.
  • Limit write permissions on CIFS/SMB shares, enforce stricter RLIMIT_FSIZE limits for users accessing the share, and monitor for abnormal file‑size growth to mitigate potential abuse.

Generated by OpenCVE AI on September 30, 2026 at 11:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Wed, 21 Oct 2026 13:15:00 +0000


Tue, 29 Sep 2026 21:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1284
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


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-10-21T12:54:38.540Z

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

Link: CVE-2026-98127

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

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

Modified: 2026-10-21T13:21:23.733

Link: CVE-2026-98127

cve-icon Redhat

Severity : Low

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98127 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-30T11:15:16Z

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input