What’s Vulnerable › Vulnerabilities
CVE-2026-98162: smb/server: fix tree connection leak in smb2_tree_connect()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-25 · updated 2026-10-21
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: smb/server: fix tree connection leak in smb2_tree_connect() See the procedure below: smb2_tree_connect ksmbd_tree_conn_connect xa_store(&sess->tree_conns, tree_conn->id, tree_conn) ksmbd_counter_inc(KSMBD_COUNTER_TREE_CONNS) ksmbd_share_tree_conn_inc(sc) ksmbd_iov_pin_rsp // fail status.ret = KSMBD_TREE_CONN_STATUS_NOMEM // do not disconnect tree_conn Disconnect the new tree connection if ksmbd_iov_pin_rsp() fails.
Affected products
- Linux kernel: from 5.15.145 before 5.16; from 6.1.71 before 6.2; from 6.6 before 7.2.6 — fixed in 5.16, 6.2, 7.2.6
How to fix
Upgrade to a fixed version: Linux kernel 5.16, 6.2, 7.2.6. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/39f2032096715daae5f6fd0f587ca7a474b019df
- https://git.kernel.org/stable/c/a6c88e5e3a75f1e4a98ad4bc4037465ccd7925bc
- https://git.kernel.org/stable/c/fa0c45986fc60b3edfb35879f2fb0eacc0e49e98
- https://git.kernel.org/stable/c/fea9c705bbc618ba6426424c9f8330555820c9ec
Get alerted when CVE-2026-98162 or the next vulnerability affects your stack