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.
Published: 2026-11-07
Score: n/a
EPSS: n/a
KEV: No
Impact: Kernel memory disclosure
Action: Patch Kernel
AI Analysis

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 include Linux kernel users running unpatched mainline releases, specifically versions around 6.6.87.2 and earlier. The bug was reproduced on 6.6.87.2 by a malicious SMB2 server sending a STATUS_BUFFER_OVERFLOW with OutputCount equal to zero. Fixes for the flaw have been incorporated into later kernel commits and are available in newer kernel sources.

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 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.

Generated by OpenCVE AI on November 7, 2026 at 15:52 UTC.

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 7, 2026 at 15:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 07 Nov 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Sat, 07 Nov 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-126

Sat, 07 Nov 2026 14:15:00 +0000

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

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-11-07T14:08:45.924Z

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

Link: CVE-2026-99274

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-07T14:17:02.730

Modified: 2026-11-07T14:17:02.730

Link: CVE-2026-99274

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-07T17:00:17Z

Weaknesses