In the Linux kernel, the following vulnerability has been resolved: smb: client: reject a tree connect response whose byte count is too small… (CVE-2026-89631)
A vulnerability in the Linux kernel's SMB client was resolved by rejecting tree connect responses with byte counts that are too small. The issue involved improper bounds checking on the ByteCount field, which could lead to an out-of-bounds read and exposure of kernel memory through the /proc filesystem. The fix ensures that responses with fewer than two bytes are rejected, preventing the parser from consuming invalid data.
AI Analysis
Technical Summary
The vulnerability in the Linux kernel SMB client arises from CIFSTCon() using strnlen() bounded by the server's ByteCount minus two. When ByteCount is 0 or 1, this calculation results in a negative integer that converts to a large size_t, causing a wraparound in the __u16 bytes_left variable. This leads to cifs_strndup_from_utf16() reading beyond the allocated slab object (~16 KB), potentially exposing kernel memory contents to userspace via tcon->nativeFileSystem in /proc/fs/cifs/DebugData. The fix rejects any tree connect response whose byte area is smaller than two bytes, the minimum required for parsing.
Potential Impact
This vulnerability could allow an attacker to cause an out-of-bounds read in kernel memory, potentially leaking sensitive information to userspace through the /proc filesystem. There is no indication of code execution or privilege escalation. No known exploits are reported in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reject tree connect responses with byte counts smaller than two bytes. Users should apply the official kernel update that includes this fix once available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: smb: client: reject a tree connect response whose byte count is too small… (CVE-2026-89631)
Description
A vulnerability in the Linux kernel's SMB client was resolved by rejecting tree connect responses with byte counts that are too small. The issue involved improper bounds checking on the ByteCount field, which could lead to an out-of-bounds read and exposure of kernel memory through the /proc filesystem. The fix ensures that responses with fewer than two bytes are rejected, preventing the parser from consuming invalid data.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel SMB client arises from CIFSTCon() using strnlen() bounded by the server's ByteCount minus two. When ByteCount is 0 or 1, this calculation results in a negative integer that converts to a large size_t, causing a wraparound in the __u16 bytes_left variable. This leads to cifs_strndup_from_utf16() reading beyond the allocated slab object (~16 KB), potentially exposing kernel memory contents to userspace via tcon->nativeFileSystem in /proc/fs/cifs/DebugData. The fix rejects any tree connect response whose byte area is smaller than two bytes, the minimum required for parsing.
Potential Impact
This vulnerability could allow an attacker to cause an out-of-bounds read in kernel memory, potentially leaking sensitive information to userspace through the /proc filesystem. There is no indication of code execution or privilege escalation. No known exploits are reported in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reject tree connect responses with byte counts smaller than two bytes. Users should apply the official kernel update that includes this fix once available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-95qf-fgcq-pcrc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-89631"]
Threat ID: 6aa4a00955bf5e2cf5a8665c
Added to database: 09/12/2026, 00:42:49 UTC
Last enriched: 09/12/2026, 01:01:06 UTC
Last updated: 09/12/2026, 01:01:06 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.