CVE-2026-99274: smb: client: fix fiemap wild read on empty truncated response

Published Nov 7, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

smb3fiemap() treats -E2BIG from SMB2ioctl() as a truncated range blob and loops for the next chunk. If the server reports STATUSBUFFEROVERFLOW with OutputCount == 0, SMB2ioctl() returns -E2BIG with outdata == NULL and outdatalen == 0, and the existing length checks accept the empty result. The loop then evaluates

next = outdata[num - 1].fileoffset + ...

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 FSCTLQUERYALLOCATEDRANGES with STATUSBUFFEROVERFLOW and OutputCount == 0; an FSIOCFIEMAP ioctl on the mount oopses in cifsfiemap() with CR2 = fffffffffffffff8. The code path is unchanged on mainline.

Event History

Nov 7, 2026
CVE Published
via MITRE·02:08 PM
Data Sourced
via MITRE·02:08 PM
Description
Data Sourced
via NVD·02:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203