ksmbd: fix refcount leak causing resource not released
Published Sep 5, 2025
7.5
HIGHCVSS 3.1
EPSS 0.29%
Description
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.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.15StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.15
- Version 6.12.44StatusunaffectedConstraints<=6.12.*
- Version 6.16.4StatusunaffectedConstraints<=6.16.*
- Version 6.17StatusunaffectedConstraints<=*
- Version 6.6.103StatusunaffectedConstraints<=6.6.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 5.15 · < 6.6.103
- ≥ 6.7 · < 6.12.44
- ≥ 6.13 · < 6.16.4
- 6.17
- 6.17
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
No CWE recorded.
References (10)
- https://access.redhat.com/security/cve/CVE-2025-39720 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2393525 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-31507 Advisory
- https://git.kernel.org/stable/c/36e010bb865fbaa1202fe9bcce3fd486d6db7606 Patch
- https://git.kernel.org/stable/c/89bb430f621124af39bb31763c4a8b504c9651e2 Patch
- https://git.kernel.org/stable/c/9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8 Patch
- https://git.kernel.org/stable/c/a1d2bab4d53368a526c97aba92671dd71814f95a Patch
- https://lore.kernel.org/linux-cve-announce/2025090551-CVE-2025-39720-3cbf@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2025-39720
- https://www.cve.org/CVERecord?id=CVE-2025-39720
Change history (0)
No recorded changes yet.