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

smb: client: fix smbd_connection leak on cifs_get_tcp_session() error

When an RDMA connection is successfully established via
smbd_get_connection() but cifs_get_tcp_session() later fails (e.g.
kthread_create() returns an error), the error path frees tcp_ses
without first destroying the smbd_connection.

Fix this by calling smbd_destroy() in the out_err cleanup path before
kfree(tcp_ses). smbd_destroy() safely handles the case where
smbd_conn is NULL, so it can be called unconditionally.
Published: 2026-10-06
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory Leak causing Denial of Service
Action: Patch
AI Analysis

Impact

The vulnerability is a memory leak caused by missing cleanup of the smbd_connection object when cifs_get_tcp_session() fails. The error path frees the TCP session structure without first calling smbd_destroy(), leaving an allocated smbd_connection. This missing release is a CWE‑772 flaw that can accumulate over repeated failures, exhausting kernel memory and potentially causing denial of service.

Affected Systems

All Linux kernel builds that contain the SMB/CIFS client code prior to the patch commit 3164402c58940ff58a3cecdb026405f07b0253af are affected. The flaw resides solely in kernel space and does not impact user‑space applications. Systems using a kernel that has not yet incorporated the commit will be vulnerable.

Risk and Exploitability

The EPSS score is less than 1%, indicating a very low likelihood of exploitation under current conditions. The CVSS score of 5.5 denotes moderate severity. The flaw is not included in the CISA KEV catalog. Exploitation would require an SMB client from a remote host to initiate an RDMA connection that succeeds but then triggers a failure in cifs_get_tcp_session(), such as a kthread_create() error, thereby repeatedly invoking the faulty cleanup path. If an attacker can repeatedly induce failures, the resulting memory leak could lead to a denial‑of‑service attack.

Generated by OpenCVE AI on October 7, 2026 at 16:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes commit 3164402c58940ff58a3cecdb026405f07b0253af or the corresponding stable release that applies the fix.
  • If a kernel upgrade cannot be performed immediately, implement network filtering or firewall rules to restrict outbound SMB traffic that could trigger RDMA connections on the vulnerable host.
  • Monitor system memory usage for abnormal growth patterns that may indicate an ongoing leak, and investigate any recurring SMB connection failures that could exacerbate the issue.

Generated by OpenCVE AI on October 7, 2026 at 16:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Fri, 30 Oct 2026 12:45:00 +0000


Wed, 07 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Wed, 07 Oct 2026 12:30: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


Wed, 07 Oct 2026 05:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fix smbd_connection leak on cifs_get_tcp_session() error When an RDMA connection is successfully established via smbd_get_connection() but cifs_get_tcp_session() later fails (e.g. kthread_create() returns an error), the error path frees tcp_ses without first destroying the smbd_connection. Fix this by calling smbd_destroy() in the out_err cleanup path before kfree(tcp_ses). smbd_destroy() safely handles the case where smbd_conn is NULL, so it can be called unconditionally.
Title smb: client: fix smbd_connection leak on cifs_get_tcp_session() error
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-30T12:37:51.075Z

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

Link: CVE-2026-98172

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:17:58.920

Modified: 2026-10-30T13:21:11.527

Link: CVE-2026-98172

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98172 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T17:00:19Z

Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime