{"id":"CVE-2026-98172","aliases":["CVE-2026-98172"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: fix smbd_connection leak on cifs_get_tcp_session() error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix smbd_connection leak on cifs_get_tcp_session() error\n\nWhen an RDMA connection is successfully established via\nsmbd_get_connection() but cifs_get_tcp_session() later fails (e.g.\nkthread_create() returns an error), the error path frees tcp_ses\nwithout first destroying the smbd_connection.\n\nFix this by calling smbd_destroy() in the out_err cleanup path before\nkfree(tcp_ses).  smbd_destroy() safely handles the case where\nsmbd_conn is NULL, so it can be called unconditionally.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix smbd_connection leak on cifs_get_tcp_session() error\n\nWhen an RDMA connection is successfully established via\nsmbd_get_connection() but cifs_get_tcp_session() later fails (e.g.\nkthread_create() returns an error), the error path frees tcp_ses\nwithout first destroying the smbd_connection.\n\nFix this by calling smbd_destroy() in the out_err cleanup path before\nkfree(tcp_ses).  smbd_destroy() safely handles the case where\nsmbd_conn is NULL, so it can be called unconditionally.","source":"cvelist"}],"published":"2026-10-06T08:44:16.721Z","modified":"2026-10-30T13:21:11.527Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"c295f6505aec085d73e8dcea9f648c8af1b9da8c","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"45a97df1b7fe6c1ca5493f8fb5284203991aeeb9","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"3164402c58940ff58a3cecdb026405f07b0253af","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"e3344bb0ff5ec8a276f42239e140f5442841ef23","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"5c908e49d349266dff0c86dda6a05df0ff19b824","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"928edc4bd6a617caabeb575fc13c254d9df623c4","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"b26a3fcf2f1c2cadba400290b639f01395db8fc8","status":"affected"},{"type":"git","introduced":"2f8946464b11822169b9f10c7cf58a2440b51d54","fixed":"e75c96157d45e498970158c8f7373d90102e33b9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"5.10.273","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c295f6505aec085d73e8dcea9f648c8af1b9da8c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45a97df1b7fe6c1ca5493f8fb5284203991aeeb9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3164402c58940ff58a3cecdb026405f07b0253af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3344bb0ff5ec8a276f42239e140f5442841ef23","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c908e49d349266dff0c86dda6a05df0ff19b824","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/928edc4bd6a617caabeb575fc13c254d9df623c4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b26a3fcf2f1c2cadba400290b639f01395db8fc8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e75c96157d45e498970158c8f7373d90102e33b9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98172","url":"https://www.cve.org/CVERecord?id=CVE-2026-98172","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:51.075Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98172","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98172","licence":"Public domain","modified":"2026-10-30T13:21:11.527Z"}],"updatedAt":"2026-11-25T22:59:42.276Z","epss":{"score":0.00177,"percentile":0.0754,"date":"2026-12-01T12:00:22.000Z"}}