smb/client: validate new EOF for zero range
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.
CVE-2026-98126
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98126
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "72c419d9b073628d3b5b0b2fc787b724f1a8c726",
"lessThan": "5fbd8848f2e25c8163896ec52863df2305a3bb63",
"versionType": "git"
},
{
"status": "affected",
"version": "72c419d9b073628d3b5b0b2fc787b724f1a8c726",
"lessThan": "3673f057b64abfa957e8ae84448db69369a5091a",
"versionType": "git"
},
{
"status": "affected",
"version": "72c419d9b073628d3b5b0b2fc787b724f1a8c726",
"lessThan": "06a4f9049cb6dc319bceec2dc813ba89add8b828",
"versionType": "git"
},
{
"status": "affected",
"version": "72c419d9b073628d3b5b0b2fc787b724f1a8c726",
"lessThan": "f320ca20c273a26cd779bdb2b2e4b076a95c76f6",
"versionType": "git"
},
{
"status": "affected",
"version": "72c419d9b073628d3b5b0b2fc787b724f1a8c726",
"lessThan": "88972e35750792e717af287dc71f42a03b5cbce4",
"versionType": "git"
}
],
"programFiles": [
"fs/smb/client/smb2ops.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.1"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.1",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/smb/client/smb2ops.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98126
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #48857 · Revision 1
- Added to Heist Feed
- Publisher date