SocWatch

CVE-2026-89788

Kritisch 9,8

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix tree connection use-after-free in smb2_tree_connect() ksmbd_tree_conn_connect() p...

CVSS
9,8 (v3.1)
Angriffswahrscheinlichkeit (EPSS)
0,71 % (höher als 54,8 % aller Lücken)
Veröffentlicht
16.09.2026
Zuletzt geändert
17.11.2026

Beschreibung

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix tree connection use-after-free in smb2_tree_connect() 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: - On normal exit or an error after publication, smb2_tree_connect() drops its creator reference. Error cleanup also calls ksmbd_tree_conn_disconnect(), which drops the xarray reference only if it removes the exact entry. - SMB2 TREE_DISCONNECT uses the same helper to remove the entry and drop its xarray reference. The request's existing lookup reference remains owned by the request and is released by the existing cleanup. - Session LOGOFF removes each entry and drops its xarray reference. If it wins the race, later cleanup sees that the entry is gone and does not drop that reference again. To enforce this ownership, claim the disconnected state and erase the exact entry atomically under tree_conns_lock. This guarantees one drop for the xarray reference and one drop by each in-flight user, regardless of which teardown path wins. If logoff removes the entry before initialization completes, fail the connect instead of marking the detached object TREE_CONNECTED.

Betroffene Pakete

Paket Betroffen Behoben in
Debian:12 linux alle Versionen vor 6.1.192-1 6.1.192-1
Debian:12 linux-6.12 alle Versionen vor 6.12.115-2~deb12u1 6.12.115-2~deb12u1
Debian:13 linux alle Versionen vor 6.12.115-2 6.12.115-2
Ubuntu:22.04:LTS linux alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-aws-6.8 alle Versionen vor 6.8.0-1070.76~22.04.1 6.8.0-1070.76~22.04.1
Ubuntu:22.04:LTS linux-azure alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-azure-6.8 alle Versionen vor 6.8.0-1074.83~22.04.1 6.8.0-1074.83~22.04.1
Ubuntu:22.04:LTS linux-gcp alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-gcp-6.8 alle Versionen vor 6.8.0-1074.82~22.04.1 6.8.0-1074.82~22.04.1
Ubuntu:22.04:LTS linux-hwe-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-hwe-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-hwe-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-hwe-6.8 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-ibm alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-ibm-6.8 alle Versionen vor 6.8.0-1070.71~22.04.1 6.8.0-1070.71~22.04.1
Ubuntu:22.04:LTS linux-kvm alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-5.19 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.2 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.8 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-oracle alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-oracle-6.5 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:22.04:LTS linux-oracle-6.8 alle Versionen vor 6.8.0-1068.72~22.04.1 6.8.0-1068.72~22.04.1
Ubuntu:24.04:LTS linux alle Versionen vor 6.8.0-151.151 6.8.0-151.151
Ubuntu:24.04:LTS linux-aws alle Versionen vor 6.8.0-1070.76 6.8.0-1070.76
Ubuntu:24.04:LTS linux-aws-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-aws-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-aws-7.0 alle Versionen vor 7.0.0-1017.18~24.04.1 7.0.0-1017.18~24.04.1
Ubuntu:24.04:LTS linux-azure alle Versionen vor 6.8.0-1074.83 6.8.0-1074.83
Ubuntu:24.04:LTS linux-azure-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-azure-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-azure-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-azure-7.0 alle Versionen vor 7.0.0-1020.21~24.04.2 7.0.0-1020.21~24.04.2
Ubuntu:24.04:LTS linux-gcp alle Versionen vor 6.8.0-1074.82 6.8.0-1074.82
Ubuntu:24.04:LTS linux-gcp-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-gcp-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-gcp-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-gcp-7.0 alle Versionen vor 7.0.0-1017.19~24.04.1 7.0.0-1017.19~24.04.1
Ubuntu:24.04:LTS linux-hwe-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-hwe-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-hwe-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-hwe-7.0 alle Versionen vor 7.0.0-42.42~24.04.1 7.0.0-42.42~24.04.1
Ubuntu:24.04:LTS linux-ibm alle Versionen vor 6.8.0-1070.71 6.8.0-1070.71
Ubuntu:24.04:LTS linux-lowlatency alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-lowlatency-hwe-6.11 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-oracle alle Versionen vor 6.8.0-1068.72 6.8.0-1068.72
Ubuntu:24.04:LTS linux-oracle-6.14 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-oracle-6.17 alle Versionen, noch kein Fix noch kein Fix
Ubuntu:24.04:LTS linux-oracle-7.0 alle Versionen vor 7.0.0-1016.18~24.04.1 7.0.0-1016.18~24.04.1
Ubuntu:24.04:LTS linux-vmware alle Versionen vor 6.8.0-1011.11 6.8.0-1011.11

Quellen

Weitere Kennungen

UBUNTU-CVE-2026-89788 · DEBIAN-CVE-2026-89788

Sind Ihre Projekte betroffen?

Prüfen Sie ein Lockfile kostenlos oder lassen Sie Ihre Repositories laufend überwachen.