# CVE-2026-98172: smb: client: fix smbd_connection leak on cifs_get_tcp_session() error

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-06T08:44:16.721Z
- Modified: 2026-10-30T13:21:11.527Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 2f8946464b11822169b9f10c7cf58a2440b51d54 before c295f6505aec085d73e8dcea9f648c8af1b9da8c; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before 3164402c58940ff58a3cecdb026405f07b0253af; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before e3344bb0ff5ec8a276f42239e140f5442841ef23; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before 5c908e49d349266dff0c86dda6a05df0ff19b824; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before 928edc4bd6a617caabeb575fc13c254d9df623c4; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before b26a3fcf2f1c2cadba400290b639f01395db8fc8; from 2f8946464b11822169b9f10c7cf58a2440b51d54 before e75c96157d45e498970158c8f7373d90102e33b9; 4.16 (not affected: before 4.16; from 5.10.273 up to 5.10.*; from 5.15.224 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

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

## Sources

- CVE List: [CVE-2026-98172](https://www.cve.org/CVERecord?id=CVE-2026-98172), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-98172](https://nvd.nist.gov/vuln/detail/CVE-2026-98172), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-98172 · Whole record: https://cve.day/CVE-2026-98172.json · Rebuilt by cve.day 2026-11-25T22:59:42.276Z
