All vulnerabilities

Servers and applications

CVE-2026-89788

ksmbd: fix tree connection use-after-free in smb2_tree_connect()

Severity
Critical 9.8
Published
16 Sept 2026
Last changed
17 Nov 2026
Added to UpHeron
30 Oct 2026
Fixed in
5.16, 6.1.191, 6.6.160, 6.12.114, 6.18.64, 7.2.6
Exploit chance
0.7% in the next 30 daysHigher than 53% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Sources
CVE Program

Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd_tree_conn_connect() publishes a new tree connection in sess->tree_conns with a single reference and returns its pointer to smb2_tree_connect(). The handler continues to initialize the object and build the response after publication. A concurrent session logoff can erase the connection and drop that reference, freeing the object while the handler still uses it.

BUG: KASAN: slab-use-after-free in smb2_tree_connect+0xe3d/0xf90 smb2_tree_connect (fs/smb/server/smb2pdu.c:2872) handle_ksmbd_work process_one_work worker_thread kthread

After xa_store() succeeds, take a second reference before releasing tree_conns_lock. The original reference belongs to the xarray entry and the second belongs to the creating smb2_tree_connect() handler.

Keep the references balanced in every path:

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.2.6
  • From 6.13 before 6.18.64
  • From 6.7 before 6.12.114
  • From 6.6 before 6.1.191
All 7 release lines
  • From 5.15.145 before 5.16
  • From 6.1.71 before 6.1.191
  • From 6.2 before 6.6.160
  • From 6.6 before 6.1.191
  • From 6.7 before 6.12.114
  • From 6.13 before 6.18.64
  • From 6.19 before 7.2.6

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-89788