# CVE-2026-99386: smb: client: don't resurrect an exiting tcon from cached dir workers

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-19 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99386, UBUNTU-CVE-2026-99386, CGA-24c8-f5wc-66jf, CGA-2qqc-xvhp-cjj7, CGA-4pwj-p6j5-7r82, CGA-7246-xc9m-4c4h, CGA-cj3j-v84h-3hrw, CGA-hf93-jj5p-322j, CGA-jjm6-3rw2-mj9j, CGA-qm2p-627h-cxx2, CGA-vggv-mphc-7qqq, CGA-vgw9-r7vx-qqr9, CGA-wh7h-gx98-vqvq, CGA-2mm3-974q-9qgg, CGA-5f88-57fv-m52h, CGA-9cj9-5whp-76vx, CGA-fc2r-mr5q-f6qc, CGA-vcr8-pg8h-c4gh, CGA-vm68-jggm-m834, CGA-x29q-7rh9-fwhv, CGA-4prv-hp42-jqq5
- Record: https://cvemate.com/vulnerability/CVE-2026-99386 · JSON: https://cvemate.com/vulnerability/CVE-2026-99386/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.484%, percentile 43.325%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 155)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): \< 6.12.117-1 \| \< 7.3.3-1
- debian linux-6.12 (Debian): \< 6.12.117-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <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>
- <https://security-tracker.debian.org/tracker/CVE-2026-99386>
- <https://git.kernel.org/stable/c/76c98dbe97f8a2c1465b4b21c9428333ba284d81>
- <https://ubuntu.com/security/CVE-2026-99386>
- <https://www.cve.org/CVERecord?id=CVE-2026-99386>
- <https://git.kernel.org/linus/d58e7b40908a8a57755811d5b37af1df3380278f>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99386.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-99386>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>

---

Data as of 2026-12-05T08:40:06.633Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
