CVE-2026-98172

Source
https://cve.org/CVERecord?id=CVE-2026-98172
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98172.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98172
Downstream
Published
2026-10-06T08:44:16Z
Modified
2026-10-08T02:52:52Z
Summary
smb: client: fix smbd_connection leak on cifs_get_tcp_session() error
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98172.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2f8946464b11822169b9f10c7cf58a2440b51d54
Fixed
3164402c58940ff58a3cecdb026405f07b0253af
Fixed
e3344bb0ff5ec8a276f42239e140f5442841ef23
Fixed
5c908e49d349266dff0c86dda6a05df0ff19b824
Fixed
928edc4bd6a617caabeb575fc13c254d9df623c4
Fixed
b26a3fcf2f1c2cadba400290b639f01395db8fc8
Fixed
e75c96157d45e498970158c8f7373d90102e33b9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98172.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.16.0
Fixed
6.1.189
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.158
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.112
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.54
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98172.json"