Bug 2546508 (CVE-2026-98172) - CVE-2026-98172 kernel: smb: client: fix smbd_connection leak on cifs_get_tcp_session() error
Summary: CVE-2026-98172 kernel: smb: client: fix smbd_connection leak on cifs_get_tcp_...
Keywords:
Status: NEW
Alias: CVE-2026-98172
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-06 09:36 UTC by OSIDB Bzimport
Modified: 2026-10-07 08:22 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-06 09:36:09 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.