CVE-2026-98172
smb: client: fix smbd_connection leak on cifs_get_tcp_session() error
Check your servers for CVE-2026-98172
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98172 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.24% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before c295f6505aec085d73e8dcea9f648c8af1b9da8c affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9 affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before 3164402c58940ff58a3cecdb026405f07b0253af affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before e3344bb0ff5ec8a276f42239e140f5442841ef23 affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before 5c908e49d349266dff0c86dda6a05df0ff19b824 affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before 928edc4bd6a617caabeb575fc13c254d9df623c4 affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before b26a3fcf2f1c2cadba400290b639f01395db8fc8 affected from 2f8946464b11822169b9f10c7cf58a2440b51d54, before e75c96157d45e498970158c8f7373d90102e33b9
Other versions: unaffected
|
| Linux |
affected 4.16 unaffected before 4.16 unaffected from 5.10.273 up to and including 5.10.* unaffected from 5.15.224 up to and including 5.15.* unaffected from 6.1.189 up to and including 6.1.* unaffected from 6.6.158 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.54 up to and including 6.18.* unaffected from 7.2.8 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98172 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98172
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98172
trivy image --scanners vuln IMAGE | grep CVE-2026-98172
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c295f6505aec085d73e8dcea9f648c8af1b9da8c git.kernel.org
- https://git.kernel.org/stable/c/45a97df1b7fe6c1ca5493f8fb5284203991aeeb9 git.kernel.org
- https://git.kernel.org/stable/c/3164402c58940ff58a3cecdb026405f07b0253af git.kernel.org
- https://git.kernel.org/stable/c/e3344bb0ff5ec8a276f42239e140f5442841ef23 git.kernel.org
- https://git.kernel.org/stable/c/5c908e49d349266dff0c86dda6a05df0ff19b824 git.kernel.org
- https://git.kernel.org/stable/c/928edc4bd6a617caabeb575fc13c254d9df623c4 git.kernel.org
- https://git.kernel.org/stable/c/b26a3fcf2f1c2cadba400290b639f01395db8fc8 git.kernel.org
- https://git.kernel.org/stable/c/e75c96157d45e498970158c8f7373d90102e33b9 git.kernel.org
Source: the record CVE-2026-98172 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse