---
id: CVE-2025-39720
title: 'ksmbd: fix refcount leak causing resource not released'
summary: |-
  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 refcou…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf <
    263680d314eaaa27334f486d86c9fe7d19f50c8a
  - >-
    Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf <
    a1d2bab4d53368a526c97aba92671dd71814f95a
  - >-
    Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf <
    36e010bb865fbaa1202fe9bcce3fd486d6db7606
  - >-
    Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf <
    9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8
  - >-
    Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf <
    89bb430f621124af39bb31763c4a8b504c9651e2
  - Linux 5.15
published: '2025-09-05'
updated: '2026-10-30'
sourceUpdated: '2026-10-30T12:22:22.322Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-39720'
references:
  - url: 'https://git.kernel.org/stable/c/263680d314eaaa27334f486d86c9fe7d19f50c8a'
  - url: 'https://git.kernel.org/stable/c/a1d2bab4d53368a526c97aba92671dd71814f95a'
  - url: 'https://git.kernel.org/stable/c/36e010bb865fbaa1202fe9bcce3fd486d6db7606'
  - url: 'https://git.kernel.org/stable/c/9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8'
  - url: 'https://git.kernel.org/stable/c/89bb430f621124af39bb31763c4a8b504c9651e2'
tags:
  - cve.org
epss: 0.00298
epssPercentile: 0.22612
ingestedAt: '2026-11-03T19:53:18.508Z'
---

## Overview

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.

## Affected

- `Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 263680d314eaaa27334f486d86c9fe7d19f50c8a`
- `Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf < a1d2bab4d53368a526c97aba92671dd71814f95a`
- `Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 36e010bb865fbaa1202fe9bcce3fd486d6db7606`
- `Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 9a7abce6e8c0e2145b346a6d4abf0d9655e9b0e8`
- `Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf < 89bb430f621124af39bb31763c4a8b504c9651e2`
- `Linux 5.15`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
