CVE-2026-99274

smb: client: fix fiemap wild read on empty truncated response

Published Nov 7, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix fiemap wild read on empty truncated response

smb3_fiemap() treats -E2BIG from SMB2_ioctl() as a truncated range blob
and loops for the next chunk. If the server reports
STATUS_BUFFER_OVERFLOW with OutputCount == 0, SMB2_ioctl() returns
-E2BIG with out_data == NULL and out_data_len == 0, and the existing
length checks accept the empty result. The loop then evaluates

next = out_data[num - 1].file_offset + ...

with num == 0, reading 16 bytes before NULL.

Reject a truncated range blob that contains no range, so the resume
offset is never computed from an empty response. Also require the last
range in a truncated blob to advance the resume offset without
overflowing, and to stay within the requested range; a malicious or
broken server could otherwise make no progress or underflow len and loop
forever. Free the previous response buffer before retrying.

Reproduced on 6.6.87.2 with a malicious SMB2 server that answers
FSCTL_QUERY_ALLOCATED_RANGES with STATUS_BUFFER_OVERFLOW and
OutputCount == 0; an FS_IOC_FIEMAP ioctl on the mount oopses in
cifs_fiemap() with CR2 = fffffffffffffff8. The code path is unchanged
on mainline.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker‑controlled SMB server to cause the Linux kernel client to read 16 bytes of kernel memory from an empty, truncated range blob. This out‑of‑bounds read can leak sensitive information from the kernel address space, potentially exposing secrets or facilitating further compromise. The flaw originates when the SMB2_ioctl routine interprets an error code as a truncated response and then incorrectly processes a zero‑length array. The result is a wild read that can be triggered by a specially crafted SMB response.

Affected Systems

Affected systems are Linux kernel users on mainline releases, including version 6.6.87.2 and older. The flaw resides in the smb3_fiemap and SMB2_ioctl paths of the CIFS client. Systems running any unpatched copy of the Linux kernel that does not include the commit that fixes the fiemap wild read are vulnerable. There is no specific vendor beyond the upstream Linux kernel.

Risk and Exploitability

Risk and exploitability are uncertain due to the absence of an EPSS score, but the CVSS score of 6.5 indicates a moderate impact, and the potential for kernel memory disclosure indicates a high confidentiality risk. The flaw is listed as not in the CISA KEV catalog, suggesting no confirmed exploitation at the time of disclosure. The likely attack vector is a remote SMB client interacting with a malicious or compromised SMB server, which is commonly present on enterprise networks. An attacker who can supply such a server could trigger the zero‑length range response to read arbitrary kernel memory, potentially serving as a stepping stone for privilege escalation or further attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the fix for the SMB client fiemap read vulnerability – for example, any release newer than 6.6.87.2.
  • If a kernel upgrade is not immediately possible, limit SMB traffic to trusted hosts by applying network policies or firewall rules that restrict connections to known SMB servers.
  • Consider disabling or hardening SMB file range queries in the CIFS/SMB client configuration to reduce the likelihood that a truncated response will be processed; for example, restrict the use of FSCTL_QUERY_ALLOCATED_RANGES to trusted sources.

Generated by OpenCVE AI on November 8, 2026 at 01:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4927-1 linux-6.12 security update
History
Type Values Removed Values Added
Weaknesses CWE-476
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-125
CWE-126
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fix fiemap wild read on empty truncated response smb3_fiemap() treats -E2BIG from SMB2_ioctl() as a truncated range blob and loops for the next chunk. If the server reports STATUS_BUFFER_OVERFLOW with OutputCount == 0, SMB2_ioctl() returns -E2BIG with out_data == NULL and out_data_len == 0, and the existing length checks accept the empty result. The loop then evaluates next = out_data[num - 1].file_offset + ... with num == 0, reading 16 bytes before NULL. Reject a truncated range blob that contains no range, so the resume offset is never computed from an empty response. Also require the last range in a truncated blob to advance the resume offset without overflowing, and to stay within the requested range; a malicious or broken server could otherwise make no progress or underflow len and loop forever. Free the previous response buffer before retrying. Reproduced on 6.6.87.2 with a malicious SMB2 server that answers FSCTL_QUERY_ALLOCATED_RANGES with STATUS_BUFFER_OVERFLOW and OutputCount == 0; an FS_IOC_FIEMAP ioctl on the mount oopses in cifs_fiemap() with CR2 = fffffffffffffff8. The code path is unchanged on mainline.
Title smb: client: fix fiemap wild read on empty truncated response
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 25, 2026, 6:18 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 7, 2026, 2:17 PM
Modified
Nov 25, 2026, 7:17 PM
Severity
Moderate
Public date
Nov 7, 2026, 2:08 PM