CVE-2025-37777

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

State
Published
Severity
8.8 High
Published
May 1, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1da8bd9a10ecd718692732294d15fd801c0eabb5Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1aec4d14cf81b7b3e7b69eb1cfa94144eed7138eAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before e59796fc80603bcd8569d4d2e10b213c1918edb4Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13deAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 6.6.101 through 6.6.*Not affected
  • 6.12.26 through 6.12.*Not affected
  • 6.14.4 through 6.14.*Not affected
  • 6.15 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.