Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98452 Overview
CVE-2026-98452 is a Linux kernel vulnerability in the SMB client code path that handles cached directory opens. The function open_cached_dir() issues CREATE and QUERY_INFO as a compound SMB2 request. When CREATE succeeds but a later command in the compound returns an error, the client fails to retain the CREATE File ID (FID) and does not issue a matching SMB2_close(). This leaves server-side handles unreleased and causes incorrect handling of response errors as valid CREATE results. The upstream fix validates the CREATE response, records FIDs, and marks the handle open before processing errors from later compound commands.
Critical Impact
Faulty cleanup of partially successful compound SMB2 requests can leak server handles and corrupt cached directory state in the Linux SMB client.
Affected Products
- Linux kernel SMB client (fs/smb/client)
- Linux stable kernel branches receiving the referenced backports
- Systems mounting remote shares via the in-kernel SMB/CIFS client
Discovery Timeline
- 2026-10-18 - CVE-2026-98452 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98452
Vulnerability Analysis
The Linux kernel SMB client uses compound requests to reduce round trips when opening cached directories. open_cached_dir() sends CREATE followed by QUERY_INFO in a single compound. The pre-patch logic assumed that if any command in the compound failed, the entire operation could be unwound without special handling of the CREATE response. This assumption is incorrect because the server may have successfully processed the CREATE and allocated a handle before failing the subsequent QUERY_INFO.
When this happens, the client discards the CREATE FID without issuing SMB2_close(). The server retains the open handle, and the client-side cached directory state becomes inconsistent. The code also treated an error response as if it contained valid CREATE fields, leading to reads of unvalidated response data. Reconnect requests signalled by -EREMCHG could be hidden behind missing response validation.
Root Cause
The root cause is improper response validation and resource tracking in a compound SMB2 request handler [CWE-404-class resource release failure]. The function did not validate the CREATE response before accessing its fields, did not record the FID when CREATE succeeded but a later command failed, and did not mark the handle open prior to error handling. The reconnect path (-EREMCHG) was evaluated after response validation, allowing a missing response to mask the reconnect condition.
Attack Vector
Triggering the flaw requires interaction with an SMB server whose responses produce the specific partial-success condition in a compound CREATE+QUERY_INFO request. A malicious or misbehaving SMB server, or a transport-level fault during a legitimate session, can induce the state. Impact is confined to the SMB client host and the server-side handle table, with no evidence of remote code execution. The vulnerability does not have a published exploit, is not listed in the CISA KEV catalog, and has a low EPSS probability.
No verified exploitation code examples are available. See the upstream kernel commits for the full technical fix: Kernel Git Commit 48958dd, Kernel Git Commit 7c15095, Kernel Git Commit abab661, and Kernel Git Commit d2ff5fb.
Detection Methods for CVE-2026-98452
Indicators of Compromise
- Unexpected growth in open file handles on SMB servers accessed by Linux clients using the in-kernel SMB client.
- Repeated SMB2 reconnect events (-EREMCHG) in dmesg or /var/log/kern.log tied to cifs or smb subsystems.
- Cached directory operations returning stale metadata after transient server errors.
Detection Strategies
- Audit mounted SMB shares and correlate client kernel versions against the stable branches that received the fix commits referenced above.
- Monitor SMB server session tables for handles opened by Linux clients that are not closed after client-side operations complete.
- Enable cifs dynamic debug (echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control) to capture open_cached_dir error paths during testing.
Monitoring Recommendations
- Collect kernel logs from Linux endpoints and servers that mount SMB shares, and alert on repeated STATUS_ error codes paired with cached directory operations.
- Track SMB server-side handle counts per client to identify leaks that correlate with transport instability.
- Include kernel version inventory in configuration management reporting to confirm patch deployment status.
How to Mitigate CVE-2026-98452
Immediate Actions Required
- Identify Linux hosts running the in-kernel SMB client and inventory kernel versions in use.
- Apply the stable kernel update from your distribution vendor once it incorporates the referenced upstream commits.
- Reboot affected systems after patch installation to activate the fixed kernel.
Patch Information
The fix is distributed across four upstream commits in the stable tree: Kernel Git Commit 48958dd, Kernel Git Commit 7c15095, Kernel Git Commit abab661, and Kernel Git Commit d2ff5fb. The patches validate the CREATE response before accessing its fields, record the FID, mark the handle open before processing later compound errors, and move -EREMCHG reconnect handling ahead of response validation.
Workarounds
- Where possible, limit use of the in-kernel SMB client on hosts that cannot be patched immediately, and prefer userspace alternatives for non-critical shares.
- Restrict SMB connections to trusted servers and reliable network segments to reduce the frequency of partial-success compound responses.
- Monitor and periodically restart affected mounts to clear leaked server handles until patches are deployed.
# Confirm installed kernel version and SMB client module details
uname -r
modinfo cifs | grep -E '^(version|srcversion|filename)'
# After patching, verify the new kernel is active
uname -a
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

