PT-2026-139498
CVE-2026-99274
·
Published
2026-11-07
·
Updated
2026-11-09
Description by
CVSS 4.0
7.1
HighMetricsAV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
Linux kernel version 6.6.87.2
Description
A wild read occurs in the SMB client when handling empty truncated responses. The
smb3 fiemap() function treats a -E2BIG error from SMB2 ioctl() as a truncated range blob and attempts to loop for the next chunk. If a server returns STATUS BUFFER OVERFLOW with OutputCount equal to 0, SMB2 ioctl() returns -E2BIG with out data as NULL and out data len as 0. Because existing length checks accept this empty result, the system attempts to access out data[num - 1].file offset while num is 0, resulting in a read of 16 bytes before the NULL pointer. This can be triggered by a malicious SMB2 server responding to FSCTL QUERY ALLOCATED RANGES with STATUS BUFFER OVERFLOW and an OutputCount of 0, causing the cifs fiemap() function to crash during an FS IOC FIEMAP ioctl operation.Recommendations
Update the Linux kernel to a version where the
smb3 fiemap() function is patched to reject truncated range blobs containing no range and validate that the last range in a truncated blob advances the resume offset without overflowing.
As a temporary workaround, restrict the use of the FS IOC FIEMAP ioctl on SMB mounts. Found an issue in the description? Have something to add? Feel free to write us 👾