In the Linux kernel, the following vulnerability has been resolved: smb: client: fix create context out-of-bounds reads smb2_parse_contexts()… (CVE-2026-98454)
Description
A vulnerability in the Linux kernel SMB client was resolved that involved out-of-bounds reads in the create context parsing function smb2_parse_contexts(). The issue allowed malformed create-context chains to expose bytes beyond the intended context boundaries to handlers. Additionally, lease parsers made incorrect layout assumptions that could yield unrelated data without failing. The fix enforces strict bounds checking on context records, rejects malformed chains, and ensures proper parsing of lease contexts.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel SMB client had a vulnerability in smb2_parse_contexts() where the function validated the entire create-context area but did not limit each individual record to its Next field before dispatching. This allowed malformed chains to expose bytes beyond the current context to handlers. The QFid handler improperly cast the full response structure but only read the DiskFileId field. Similarly, SMB2/SMB3 lease parsers assumed fixed offsets for LeaseState and LeaseFlags rather than using the DataOffset field, potentially reading unrelated in-bounds data. The patch limits each context to its Next value, rejects offsets before the context header, rejects malformed chains, bounds the name range by the current context, avoids dispatching handlers when DataLength is zero, reads DiskFileId only when covered by context data, and parses lease contexts strictly by DataOffset and expected size, skipping lease parsing on size mismatch without failing the open.
Potential Impact
This vulnerability could lead to out-of-bounds reads within the SMB client create context parsing, potentially exposing unintended kernel memory contents to the SMB client handlers. While no direct exploit or active exploitation is reported, such memory exposure could aid attackers in information disclosure or further exploitation chains.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by enforcing strict bounds checking and rejecting malformed create-context chains. Users should apply the official Linux kernel updates that include this patch. No additional mitigation steps are indicated beyond applying the fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-q4c4-v5h3-5c35
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98454"]
Threat ID: 6ad520b12cdf04f6569944eb
Added to database: 10/18/2026, 19:40:33 UTC
Last enriched: 10/18/2026, 19:48:51 UTC
Last updated: 10/18/2026, 22:02:57 UTC
Views: 9
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.