CVE-2026-98162
Medium · 5.5CVSS
5.5
EPSS
0.1%
Published
Sep 25, 2026
CISA due date
—
Cloudanix analysis
A mistake in the Linux kernel's file-sharing code can waste memory when certain errors happen, which over time might slow down or crash servers that handle shared folders.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Failure during ksmbd_iov_pin_rsp in smb2_tree_connect leaves the tree_conn object inserted via xa_store and with counters incremented, without subsequent disconnection or release, resulting in a kernel memory leak.
Why it matters to the business
On Linux systems running SMB servers, repeated triggering can gradually exhaust kernel memory and degrade availability of file-sharing services, though current public exploit activity remains negligible 28 days after disclosure.
How an attack unfolds
An attacker with local access issues an SMB tree connect that reaches ksmbd_tree_conn_connect successfully but then fails inside ksmbd_iov_pin_rsp; the error path sets KSMBD_TREE_CONN_STATUS_NOMEM without calling the disconnect routine, permanently leaking the allocated tree_conn object.
How to fix it
Apply the upstream fix that adds explicit tree connection teardown on ksmbd_iov_pin_rsp failure; rebuild or install a Linux kernel containing the smb/server patch referenced by this advisory.
How to confirm the fix worked
Confirm the corrected error path exists in smb2_tree_connect() by inspecting kernel source or package changelog; re-test SMB tree connect under failure injection to verify no leak occurs.
Typical attack path
- Establish local or authenticated SMB session
- Issue smb2_tree_connect request that allocates a new tree_conn
- Force ksmbd_iov_pin_rsp to fail (e.g., via memory pressure)
- Observe absence of tree_conn cleanup and counter rollback
How to detect it
Review kernel logs and SMB server traces for repeated tree-connect attempts that terminate with KSMBD_TREE_CONN_STATUS_NOMEM without matching disconnect events; correlate with gradual increases in ksmbd memory consumption.
What your security team should do
- Prioritize kernel updates for all systems exposing SMB services
- Restrict local user access to ksmbd where feasible
- Monitor memory usage of SMB-related kernel objects until patched
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-109278 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a memory leak in the… CWE-401
- CVE-2026-109270 ImageMagick before 7.1.2-32 contains a memory leak vulnerability in the -process option… CWE-401
- CVE-2026-109262 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a memory leak in the SVG… CWE-401
- CVE-2026-109263 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a memory leak in the YUV… CWE-401
- CVE-2026-109261 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a memory leak in the GIF… CWE-401
- CVE-2026-109260 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 contains a memory leak in the PNG… CWE-401
- CVE-2026-104874 Multidict is an implementation of a multidict data structure. CWE-401
- CVE-2026-98152 In the Linux kernel, the following vulnerability has been resolved: nvmet-rdma: fix queue… CWE-401