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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-06T08:44:16.721Z
- **Modified:** 2026-10-30T13:21:11.527Z

## Who should check

- Anyone running Linux \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< c295f6505aec085d73e8dcea9f648c8af1b9da8c; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 3164402c58940ff58a3cecdb026405f07b0253af; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< e3344bb0ff5ec8a276f42239e140f5442841ef23; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 5c908e49d349266dff0c86dda6a05df0ff19b824; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 928edc4bd6a617caabeb575fc13c254d9df623c4; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< b26a3fcf2f1c2cadba400290b639f01395db8fc8; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< e75c96157d45e498970158c8f7373d90102e33b9
- Anyone running Linux 4.16

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

## Affected and fixed versions

- Linux: \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< c295f6505aec085d73e8dcea9f648c8af1b9da8c; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 3164402c58940ff58a3cecdb026405f07b0253af; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< e3344bb0ff5ec8a276f42239e140f5442841ef23; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 5c908e49d349266dff0c86dda6a05df0ff19b824; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 928edc4bd6a617caabeb575fc13c254d9df623c4; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< b26a3fcf2f1c2cadba400290b639f01395db8fc8; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< e75c96157d45e498970158c8f7373d90102e33b9 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98172. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98172.md
Affected: Linux >= 2f8946464b11822169b9f10c7cf58a2440b51d54, < c295f6505aec085d73e8dcea9f648c8af1b9da8c; >= 2f8946464b11822169b9f10c7cf58a2440b51d54, < 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9; >= 2f8946464b11822169b9f10c7cf58a2440b51d54, < 3164402c58940ff58a3cecdb026405f07b0253af; >= 2f8946464b11822169b9f10…
Fixed in: Linux 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9, Linux 3164402c58940ff58a3cecdb026405f07b0253af, Linux 5c908e49d349266dff0c86dda6a05df0ff19b824, Linux 928edc4bd6a617caabeb575fc13c254d9df623c4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98172 being exploited?

There is no confirmed exploitation: CVE-2026-98172 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98172?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98172?

Linux \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< c295f6505aec085d73e8dcea9f648c8af1b9da8c; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 3164402c58940ff58a3cecdb026405f07b0253af; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< e3344bb0ff5ec8a276f42239e140f5442841ef23; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 5c908e49d349266dff0c86dda6a05df0ff19b824; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< 928edc4bd6a617caabeb575fc13c254d9df623c4; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< b26a3fcf2f1c2cadba400290b639f01395db8fc8; \>= 2f8946464b11822169b9f10c7cf58a2440b51d54, \< e75c96157d45e498970158c8f7373d90102e33b9; Linux 4.16.

### Is there a fix for CVE-2026-98172?

Yes. Fixed in Linux 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9, Linux 3164402c58940ff58a3cecdb026405f07b0253af, Linux 5c908e49d349266dff0c86dda6a05df0ff19b824, Linux 928edc4bd6a617caabeb575fc13c254d9df623c4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98172?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98172>

HTML: <https://flawdb.com/CVE-2026-98172> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98172>
