ZeroHour

CVE-2026-89636

mass

Use-After-Free in Linux Kernel SMB Client DFS Target Cache Clearing

CVSS 3.1
9.8 critical
EPSS
Published
()
Modified
AI analysis

The Linux kernel's SMB/CIFS client contains a use-after-free in its DFS (distributed file system) referral target cache: free_tgts() frees every entry in ce->tlist but fails to clear the ce->tgthint pointer, leaving it pointing at freed cache_dfs_tgt memory. If that hint is dereferenced afterwards (for example, when a DFS referral cache entry is torn down and the stale hint is consulted), the kernel accesses freed memory, which can corrupt heap memory and lead to a crash or potential local privilege escalation. The flaw is reached through the kernel SMB client's DFS referral handling, so systems that mount or access SMB shares with DFS referrals — common in enterprise/domain file-server environments — represent the practical exposure. It is scored 9.8 (CVSS:3.1 AV:N/AC:L/PR:N/UI:N), but the trigger path requires the affected system to perform DFS referral resolution rather than arbitrary remote access. It is not in CISA's KEV and no public proof-of-concept exists, so no exploitation is currently known.

What to do: Apply distribution kernel updates as soon as stable backports carrying the free_tgts() fix are released. Inventory and prioritize systems that mount SMB/CIFS shares with DFS referrals (look for cifs.ko usage and DFS referral resolution), since those are the practically exposed hosts. As hardening, avoid mounting SMB shares from untrusted servers and consider blacklisting the cifs kernel module on hosts that do not need it.

Affected
Linux kernel (SMB/CIFS client, fs/smb/client DFS referral target cache)
Estimated exposure
masshundreds of millions of devices ship kernels containing the vulnerable code; the subset actively using kernel SMB client mounts with DFS referrals is plausibly… — The vulnerable code is part of the mainline Linux kernel distributed in virtually every Linux distribution, so the flawed code is ubiquitous, even though triggering it requires the CIFS client's DFS referral path.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: clear ce->tgthint in free_tgts() When free_tgts() frees all structures in ce->tlist, ce->tgthint is left pointing to one of the freed cache_dfs_tgt structures. If ce->tgthint is not reset before it is used later, it results in a use-after-free. Set ce->tgthint to NULL in free_tgts() after the elements are freed to reflect that no elements remain.

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.