Bug 2363307 (CVE-2025-37777) - CVE-2025-37777 kernel: ksmbd: fix use-after-free in __smb2_lease_break_noti()
Summary: CVE-2025-37777 kernel: ksmbd: fix use-after-free in __smb2_lease_break_noti()
Keywords:
Status: NEW
Alias: CVE-2025-37777
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: 2025-05-01 14:03 UTC by OSIDB Bzimport
Modified: 2025-05-02 05:24 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 14:03:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix use-after-free in __smb2_lease_break_noti()

Move tcp_transport free to ksmbd_conn_free. If ksmbd connection is
referenced when ksmbd server thread terminates, It will not be freed,
but conn->tcp_transport is freed. __smb2_lease_break_noti can be performed
asynchronously when the connection is disconnected. __smb2_lease_break_noti
calls ksmbd_conn_write, which can cause use-after-free
when conn->ksmbd_transport is already freed.

Comment 1 Avinash Hanwate 2025-05-02 05:13:32 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050115-CVE-2025-37777-886d@gregkh/T


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