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-98175 Overview
CVE-2026-98175 is a use-after-free vulnerability in the Linux kernel's SMB (Server Message Block) client code. The flaw resides in the clean_demultiplex_info() function, which cancels the server->echo delayed work but fails to cancel the server->reconnect delayed work before freeing the server structure. When the demultiplex thread exits while a reconnect work item remains queued on cifsiod_wq, the deferred callback reads from freed memory. The vulnerability affects Linux kernel builds that include the CIFS/SMB client module.
Critical Impact
A queued smb2_reconnect_server() callback dereferences freed TCP_Server_Info memory, enabling kernel memory corruption and potential privilege escalation or denial of service.
Affected Products
- Linux kernel SMB client (fs/smb/client)
- Distributions shipping affected kernel versions prior to the fix commits
- Systems mounting remote shares via cifs.ko
Discovery Timeline
- 2026-10-06 - CVE-2026-98175 published to the National Vulnerability Database
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-98175
Vulnerability Analysis
The Linux CIFS client maintains a TCP_Server_Info structure per SMB server connection. This structure schedules two delayed work items on the cifsiod_wq workqueue: server->echo for keepalive traffic and server->reconnect for recovering broken sessions. When the demultiplex thread terminates, clean_demultiplex_info() tears down the connection state and releases the server object with kfree_sensitive(server).
The cleanup path cancels only the echo work. If cifs_reconnect() queued a reconnect job before the thread exit, that job remains pending on cifsiod_wq. The workqueue later invokes smb2_reconnect_server(), which reads server->srv_count on memory that has already been freed. This produces a classic use-after-free [CWE-416] in kernel space.
Root Cause
The root cause is incomplete work cancellation during teardown. The fix mirrors the behavior of cifs_put_tcp_session() by adding a cancel_delayed_work_sync(&server->reconnect) call before kfree_sensitive(server) is executed, ensuring no pending callbacks reference the freed structure.
Attack Vector
Triggering the condition requires a race between the demultiplex thread exit and a queued reconnect work item. An attacker controlling or disrupting a remote SMB server could induce reconnect attempts followed by connection teardown. Exploitation requires network interaction with an SMB server and user interaction to mount or access the share, as reflected by the CVSS vector components. Successful exploitation can corrupt kernel memory, leading to denial of service or privilege escalation.
No public proof-of-concept is available. The vulnerability is described in the upstream commit messages referenced by the Linux kernel maintainers.
Detection Methods for CVE-2026-98175
Indicators of Compromise
- Kernel oops or panic messages referencing smb2_reconnect_server, cifs_demultiplex_thread, or clean_demultiplex_info
- KASAN (Kernel Address Sanitizer) reports flagging use-after-free in fs/smb/client/connect.c
- Repeated SMB reconnect attempts followed by abrupt client disconnects in dmesg
Detection Strategies
- Audit running kernel versions against the fixed commits (180380272f11, 2e5103e11a17, 7ab9ceedd860, c65eae6f61d1, e3f6a779433d) using package management or uname -r comparisons.
- Enable KASAN in test environments to catch use-after-free conditions during SMB stress testing.
- Collect kernel crash dumps centrally to correlate cifsiod_wq worker faults across the fleet.
Monitoring Recommendations
- Forward /var/log/kern.log and journald kernel messages to a centralized log pipeline for anomaly review.
- Alert on unexpected cifs module faults, workqueue stalls, or panics on systems mounting SMB shares.
- Track outbound SMB sessions to untrusted servers that could induce repeated reconnect cycles.
How to Mitigate CVE-2026-98175
Immediate Actions Required
- Apply the vendor kernel update that incorporates the upstream fix adding cancel_delayed_work_sync(&server->reconnect) to clean_demultiplex_info().
- Prioritize patching hosts that mount SMB shares from untrusted or internet-exposed servers.
- Reboot patched systems to activate the fixed kernel image.
Patch Information
Upstream fixes are available in the following Linux kernel commits: Commit 18038027, Commit 2e5103e1, Commit 7ab9ceed, Commit c65eae6f, and Commit e3f6a779. Consult your distribution's security advisories for backported stable releases.
Workarounds
- Unload the cifs kernel module on hosts that do not require SMB client functionality using modprobe -r cifs.
- Restrict outbound SMB (TCP/445) traffic to a known allow-list of trusted file servers via host firewall rules.
- Unmount SMB shares exposed to unstable or hostile servers until the patched kernel is deployed.
# Verify running kernel and unload cifs where not required
uname -r
lsmod | grep cifs
sudo umount -a -t cifs
sudo modprobe -r cifs
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

