CVE-2026-99382: smb: client: reject FIND data areas that run past the received response

Published Nov 19, 2026
·
Updated

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

smb: client: reject FIND data areas that run past the received response

CIFSFindFirst() and CIFSFindNext() take the directory entries of a TRANS2FINDFIRST2 or TRANS2FINDNEXT2 response from DataOffset for DataCount bytes. validatet2() bounds DataOffset at 1024 and ParameterCount + DataCount by the byte count, and nothing compares DataOffset + DataCount with the number of bytes SendReceive() copied into the buffer.

smbinit() places the request and the response in the same cifsrequest allocation and cifsbufget() clears only the start of it, so a short response whose data area extends past its end has srchentriesstart point at bytes of the request that was just sent, or at whatever the allocation held before, and those bytes are parsed as directory entries. cifsreaddir() and findcifsentry() walk the entries with nxtdirentry(), which checks every entry but the first of a response against the end of the SMB; cifsquerypathinfo() and cifsbackupquerypathinfo() read the first entry with no check at all. Those reads stay inside the allocation, but what they return is not part of the response. The last entry, which LastNameOffset locates relative to the data area, is bounded against the received response by an earlier patch of this series, as is every entry that cifsfilldirent() parses; the walk itself and the two query functions are not.

SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount.

Reject a response whose data area extends past the received length, with the -EINVAL that validatet2() returns for the other malformed transaction responses. cifsquerypathinfo() and cifsbackupquerypathinfo() still read a whole entry from a data area that may be smaller than one; that is not changed here.

A conforming server is not affected. The data block of a transaction response is part of the SMB, so DataOffset + DataCount cannot exceed the smbCalcSize() bytes that SendReceive() copies; coalescet2() appends each secondary response to the data area and adds its length to both DataCount and the byte count, which keeps that relation.

Affected Software

3 affected componentsFixes available
linux/kernel>=2.6.12<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.2
7.3.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.2
  4. Compensating control

    Reject SMB transaction responses when DataOffset + DataCount extends past the received response length.

Event History

Nov 19, 2026
CVE Published
via MITRE·02:23 PM
Data Sourced
via MITRE·02:23 PM
Description
Data Sourced
via OSV·02:23 PM
DescriptionAffected Software
Data Sourced
via NVD·03: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