Linux Kernelのcifsで権限を得られる脆弱性、二重解放のおそれ
Summary
Linux KernelのSMBクライアント(cifs)で、接続情報の参照数の扱いが誤っており、解放済みのメモリを使う問題と二重解放が起きるおそれがあります。影響は6.6.64〜6.7未満、6.11.11〜6.12未満、6.12.2〜6.12.117未満、6.13.0〜6.18.61未満、6.19.0〜7.3.2未満の版です。修正版は6.7、6.12.117、6.18.61、7.3.2以降で、利用中のカーネルの版を確認し、配布元の更新を適用してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux KernelのSMBクライアント(cifs)で、接続情報の参照数の扱いが誤っており、解放済みのメモリを使う問題と二重解放が起きるおそれがあります。影響は6.6.64〜6.7未満、6.11.11〜6.12未満、6.12.2〜6.12.117未満、6.13.0〜6.18.61未満、6.19.0〜7.3.2未満の版です。修正版は6.7、6.12.117、6.18.61、7.3.2以降で、利用中のカーネルの版を確認し、配布元の更新を適用してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 6.6.64, < 6.6.163→ 6.6.163 ≥ 6.11.11, < 6.12→ 6.12 ≥ 6.12.2, < 6.12.117→ 6.12.117 ≥ 6.13.0, < 6.18.61→ 6.18.61 ≥ 6.19.0, < 7.3.2→ 7.3.2 |
6.6.163 6.12 6.12.117 6.18.61 7.3.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99386 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99386 linux-6.12, linux Fix available
- Ubuntu UBUNTU-CVE-2026-99386 linux-xilinx, linux-vmware, linux-starfive-6.5 +139 more No fixed version in this record
Original description The description as published by the source.
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…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com