Use-after-free in Linux kernel SMB client cached directory handling
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
The Linux kernel SMB client is affected from 6.6.64 before 6.6.163, from 6.12.2 before 6.12.117, from 6.11.11 before 6.12, and from 6.13. A race in cached directory handling lets the kernel reuse a tree connection that is being torn down. This leads to a use-after-free and a double free. A remote unprivileged attacker needs user interaction and high attack complexity, with high impact on confidentiality, integrity and availability.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: smb: client: don't resurrect an exiting tcon from cached dir workers cfids_laundromat_worker() bumps tcon->tc_count for every expired open cfid and queues cached_dir_offload_close() without checking whether the tcon is already being torn down. Racing with the final cifs_put_tcon(), the tcon comes back from zero and gets torn down twice: T1 T2 cifs_put_tcon() --tc_count == 0, TID_EXITING tconInfoFree() free_cached_dirs() cancel_delayed_work_sync() cfids_laundromat_worker() ++tc_count == 1 queue_work(serverclose_wq) kfree(tcon->origin_fullpath) kfree(tcon) cached_dir_offload_close() close_cached_dir() [UAF] cifs_put_tcon() tconInfoFree() [double free] cached_dir_lease_break() also bumps tc_count without tc_lock, racing with the laundromat's locked update. Take the tcon reference through a helper that refuses once the tcon is TID_EXITING or its refcount has dropped to zero. Queued put_work and close_work then always hold a tcon reference, so tconInfoFree() can't run before they finish and free_cached_dirs() doesn't need to flush any workqueue. If the laundromat can't get a reference, put the cfid back on the dying list for free_cached_dirs() to free; its handle goes away with the tree connection. The lease break path finds the tcon on ses->tcon_list under cifs_tcp_ses_lock, so it can't see TID_EXITING, but it now takes tc_lock.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Linux kernel fixed versions are 6.6.163, 6.12.117, 6.12, 6.18.61, 7.3.2 and 7.4-rc1, so update to the fixed release for your branch. Red Hat lists Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 and Red Hat OpenShift Container Platform 5 as affected with no fix available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.117, 6.12
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-11-19 Threatist record created from CVE-2026-99386
- 2026-11-19 Alias added: GHSA-q388-r9wf-9w78
- 2026-11-19 Affected versions changed · Red Hat
- 2026-11-19 CVSS score added · Red Hat
- 2026-11-22 CVSS score added · CNA
- 2026-11-23 Fix available: Linux/[email protected], Linux/Linux@76c98dbe97f8a2c1465b4b21c9428333ba284d81 · CNA
- 2026-11-23 1 new reference · CNA
References
Other 5
- https://git.kernel.org/stable/c/76c98dbe97f8a2c1465b4b21c9428333ba284d81
- https://git.kernel.org/stable/c/d1b779a4b5acf9a8692b7f002bf6d98e0597cc86
- https://git.kernel.org/stable/c/b304a9268f7d54eb75ce62f75013c9a90eabf084
- https://git.kernel.org/stable/c/ed62849db326dc166aa18496e40f27a44b2c7ad0
- https://git.kernel.org/stable/c/d58e7b40908a8a57755811d5b37af1df3380278f
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-99386 · CVE Program
- CVE-2026-99386 · NVD
- FIRST EPSS
- GHSA-q388-r9wf-9w78 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-99386 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences