# CVE-2025-71150: ksmbd: Fix refcount leak when invalid session is found on session lookup

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-01-23 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-71150, DEBIAN-CVE-2025-71150
- Record: https://cvemate.com/vulnerability/CVE-2025-71150 · JSON: https://cvemate.com/vulnerability/CVE-2025-71150/json

## Description

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

ksmbd: Fix refcount leak when invalid session is found on session lookup

When a session is found but its state is not SMB2_SESSION_VALID, It
indicates that no valid session was found, but it is missing to decrement
the reference count acquired by the session lookup, which results in
a reference count leak. This patch fixes the issue by explicitly calling
ksmbd_user_session_put to release the reference to the session.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.279%, percentile 21.867%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 161)

- debian linux (Debian): \< 6.1.162-1 \| \< 6.12.69-1 \| \< 6.18.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-186.196 \| \< 6.8.0-110.110 \| \< 6.17.0-22.22
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119 \| \< 6.8.0-1052.55 \| \< 6.17.0-1012.12
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1112.119~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1012.12~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1052.55~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1112.119+fips1 \| \< 6.8.0-1052.55+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1117.126 \| \< 6.8.0-1054.60 \| \< 6.17.0-1013.13

## References (first 20 of 43)

- <https://git.kernel.org/stable/c/11fe566b442e3bc2774191740fd377739a87a1c0>
- <https://git.kernel.org/stable/c/0fb87b28cafae71e9c8248432cc3a6a1fd759efc>
- <https://git.kernel.org/stable/c/e54fb2a4772545701766cba08aab20de5eace8cd>
- <https://git.kernel.org/stable/c/02e06785e85b4bd86ef3d23b7c8d87acc76773d5>
- <https://git.kernel.org/stable/c/8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7>
- <https://git.kernel.org/stable/c/cafb57f7bdd57abba87725eb4e82bbdca4959644>
- <https://ubuntu.com/security/CVE-2025-71150>
- <https://www.cve.org/CVERecord?id=CVE-2025-71150>
- <https://git.kernel.org/linus/cafb57f7bdd57abba87725eb4e82bbdca4959644>
- <https://ubuntu.com/security/notices/USN-8177-1>
- <https://ubuntu.com/security/notices/USN-8179-1>
- <https://ubuntu.com/security/notices/USN-8177-2>
- <https://ubuntu.com/security/notices/USN-8183-1>
- <https://ubuntu.com/security/notices/USN-8184-1>
- <https://ubuntu.com/security/notices/USN-8179-2>
- <https://ubuntu.com/security/notices/USN-8185-1>
- <https://ubuntu.com/security/notices/USN-8183-2>
- <https://ubuntu.com/security/notices/USN-8179-3>
- <https://ubuntu.com/security/notices/USN-8203-1>
- <https://ubuntu.com/security/notices/USN-8204-1>

---

Data as of 2026-12-05T06:33:35.455Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
