# CVE-2025-37777: ksmbd: fix use-after-free in __smb2_lease_break_noti()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2025-05-01T13:07:15.741Z
- Modified: 2026-08-05T11:57:28.552Z
- Weaknesses: CWE-416
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 1da8bd9a10ecd718692732294d15fd801c0eabb5; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e59796fc80603bcd8569d4d2e10b213c1918edb4; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de; 5.15 (not affected: before 5.15; from 6.6.101 up to 6.6.*; from 6.12.26 up to 6.12.*; from 6.14.4 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.15 before 6.6.101; from 6.7 before 6.12.26; from 6.13 before 6.14.4; 6.15

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1da8bd9a10ecd718692732294d15fd801c0eabb5> (patch)
- <https://git.kernel.org/stable/c/1aec4d14cf81b7b3e7b69eb1cfa94144eed7138e> (patch)
- <https://git.kernel.org/stable/c/e59796fc80603bcd8569d4d2e10b213c1918edb4> (patch)
- <https://git.kernel.org/stable/c/21a4e47578d44c6b37c4fc4aba8ed7cc8dbb13de> (patch)

## Sources

- CVE List: [CVE-2025-37777](https://www.cve.org/CVERecord?id=CVE-2025-37777), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-37777](https://nvd.nist.gov/vuln/detail/CVE-2025-37777), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-37777 · Whole record: https://cve.day/CVE-2025-37777.json · Rebuilt by cve.day 2026-11-25T22:58:57.321Z
