# CVE-2025-39720: ksmbd: fix refcount leak causing resource not released

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.32%, higher than 26% of CVEs (2026-12-02)
- Published: 2025-09-05T17:21:28.060Z
- Modified: 2026-10-30T13:18:08.740Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix refcount leak causing resource not released

When ksmbd_conn_releasing(opinfo->conn) returns true,the refcount was not
decremented properly, causing a refcount leak that prevents the count from
reaching zero and the memory from being released.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 263680d314eaaa27334f486d86c9fe7d19f50c8a; from 0626e6641f6b467447c81dd7678a69c66f7746cf before a1d2bab4d53368a526c97aba92671dd71814f95a; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 36e010bb865fbaa1202fe9bcce3fd486d6db7606; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 89bb430f621124af39bb31763c4a8b504c9651e2; 5.15 (not affected: before 5.15; from 6.1.191 up to 6.1.*; from 6.6.103 up to 6.6.*; from 6.12.44 up to 6.12.*; from 6.16.4 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.15 before 6.6.103; from 6.7 before 6.12.44; from 6.13 before 6.16.4; 6.17

## Every score

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

## References

- <https://git.kernel.org/stable/c/263680d314eaaa27334f486d86c9fe7d19f50c8a>
- <https://git.kernel.org/stable/c/a1d2bab4d53368a526c97aba92671dd71814f95a> (patch)
- <https://git.kernel.org/stable/c/36e010bb865fbaa1202fe9bcce3fd486d6db7606> (patch)
- <https://git.kernel.org/stable/c/9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8> (patch)
- <https://git.kernel.org/stable/c/89bb430f621124af39bb31763c4a8b504c9651e2> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-39720 · Whole record: https://cve.day/CVE-2025-39720.json · Rebuilt by cve.day 2026-11-25T22:59:04.281Z
