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.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Resource Leak / Denial of Service
Action: Apply Patch
AI Analysis

Impact

The vulnerability arises when the Linux kernel fails to properly disconnect an SMB2 tree connection during the smb2_tree_connect() routine, resulting in a memory leak and improper resource release (CWE-401, CWE-772). An attacker can repeatedly request SMB2 tree connect operations that remain established, gradually consuming kernel memory and connection table entries. The leak can lead to degraded performance or a denial‑of‑service condition if the kernel runs out of resources.

Affected Systems

The affected product is the Linux kernel. The CNA vendors list the product as Linux:Linux, and the advisory references kernel commits. Any Linux kernel that contains the faulty smb2_tree_connect implementation prior to the referenced patches is vulnerable. Affected versions are all releases before the commit that fixes the leak; the advisory does not enumerate specific kernel releases.

Risk and Exploitability

The EPSS score is < 1% and the vulnerability is not listed in CISA KEV. The CVSS score of 5.5 indicates moderate severity. Based on the description, it is inferred that remote attackers could exploit this flaw by sending crafted SMB2 tree connect requests without elevated privileges. An attacker would only need the ability to send such requests, and no additional privileges are required. Given the low exploitation probability, the risk is moderate, but repeated exploitation could lead to a denial of service.

Generated by OpenCVE AI on October 2, 2026 at 22:55 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch from the referenced commits (39f2032 and a6c88e5).
  • Upgrade the Linux kernel to a version that includes the fix (e.g., 6.x series or newer).
  • If a kernel upgrade is not feasible immediately, disable or restrict SMB2 connections on the affected host to prevent the leak from being triggered.
  • Monitor SMB logs and kernel metrics for signs of excessive SMB2 tree connections and resource usage anomalies.

Generated by OpenCVE AI on October 2, 2026 at 22:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 15 Oct 2026 13:30:00 +0000


Fri, 02 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Tue, 29 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-401

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-401

Fri, 25 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
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.
Title smb/server: fix tree connection leak in smb2_tree_connect()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-15T10:12:21.368Z

Reserved: 2026-09-25T10:25:14.321Z

Link: CVE-2026-98162

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2026-09-25T14:17:27.887

Modified: 2026-10-15T11:18:12.070

Link: CVE-2026-98162

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98162 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T23:00:16Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime