CVE-2026-98172

smb: client: fix smbd_connection leak on cifs_get_tcp_session() error

State
Published
Severity
Not scored
Published
Oct 6, 2026
Updated
Oct 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before c295f6505aec085d73e8dcea9f648c8af1b9da8cAffected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before 45a97df1b7fe6c1ca5493f8fb5284203991aeeb9Affected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before 3164402c58940ff58a3cecdb026405f07b0253afAffected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before e3344bb0ff5ec8a276f42239e140f5442841ef23Affected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before 5c908e49d349266dff0c86dda6a05df0ff19b824Affected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before 928edc4bd6a617caabeb575fc13c254d9df623c4Affected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before b26a3fcf2f1c2cadba400290b639f01395db8fc8Affected
  • 2f8946464b11822169b9f10c7cf58a2440b51d54 to before e75c96157d45e498970158c8f7373d90102e33b9Affected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 5.10.273 through 5.10.*Not affected
  • 5.15.224 through 5.15.*Not affected
  • 6.1.189 through 6.1.*Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.54 through 6.18.*Not affected
  • 7.2.8 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.