CVE-2026-89631: smb: client: reject a tree connect response whose byte count is too small

Published Sep 11, 2026
·
Updated

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

smb: client: reject a tree connect response whose byte count is too small

CIFSTCon() bounds its strnlen() over the byte area with the server's ByteCount minus two, which for ByteCount 0 or 1 goes negative as an int and converts to a huge sizet. The later subtraction wraps the u16 bytesleft, and that is what bounds cifsstrndupfromutf16(): a bound of up to 65535 against a ~16 KB cifsreqpoolp object runs off the end of the slab object, and the bytes reach userspace through tcon->nativeFileSystem in /proc/fs/cifs/DebugData.

Reject a byte area too small for what the parser consumes. Two bytes is the least it can consume, and no conformant response carries fewer. The new trace point is the 129th smbeiotrace entry, which mode(byte) cannot represent, so the attribute goes with it.

Affected Software

1 affected component
Linux Kernel

Event History

Sep 11, 2026
CVE Published
via MITRE·07:45 PM
Data Sourced
via MITRE·07:45 PM
Description

Frequently Asked Questions

1

Which systems are exposed?

Linux systems acting as SMB clients are exposed when they process a Tree Connect response from an SMB server. The issue is in the client-side CIFSTCon() response parsing path.

2

What does an attacker need to exploit this?

An attacker needs an SMB server, or control over an SMB server response, that can send a Tree Connect response with a ByteCount of 0 or 1. Such a response is nonconformant because the parser requires at least two bytes.

3

What is the impact of a malformed response?

The undersized ByteCount can cause the client to use an excessively large bound while processing UTF-16 data, reading beyond the approximately 16 KB request-pool slab object. The resulting bytes can reach userspace through tcon->nativeFileSystem in /proc/fs/cifs/DebugData.

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