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

CVE record · `CVE-2025-71150`

- **Identifiers:** `CVE-2025-71150`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 23 Jan 2026
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 23 Jan 2026, 14:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `2107ab40629aeabbec369cf34b8cf0f288c3eb1b to before 11fe566b442e3bc2774191740fd377739a87a1c0` (git)
  - affected: `37a0e2b362b3150317fb6e2139de67b1e29ae5ff to before 0fb87b28cafae71e9c8248432cc3a6a1fd759efc` (git)
  - affected: `450a844c045ff0895d41b05a1cbe8febd1acfcfd to before e54fb2a4772545701766cba08aab20de5eace8cd` (git)
  - affected: `a39e31e22a535d47b14656a7d6a893c7f6cf758c to before 02e06785e85b4bd86ef3d23b7c8d87acc76773d5` (git)
  - affected: `b95629435b84b9ecc0c765995204a4d8a913ed52 to before 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7` (git)
  - affected: `b95629435b84b9ecc0c765995204a4d8a913ed52 to before cafb57f7bdd57abba87725eb4e82bbdca4959644` (git)
  - affected: `5.15.176 to before 5.15.203` (semver)
  - affected: `6.1.121 to before 6.1.160` (semver)
  - affected: `6.6.67 to before 6.6.120` (semver)
  - affected: `6.12.6 to before 6.12.64` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.13`
  - unaffected: `before 6.13` (semver)
  - unaffected: `5.15.203 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.160 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.120 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.64 to 6.12.*, inclusive` (semver)
  - unaffected: `6.18.3 to 6.18.*, inclusive` (semver)
  - unaffected: `6.19 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0028, the 20th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 23 Jan 2026. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-71150](https://www.cve.org/CVERecord?id=CVE-2025-71150)
- [NVD: CVE-2025-71150](https://nvd.nist.gov/vuln/detail/CVE-2025-71150)

### References from the CNA

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

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-71150>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-71150/>. Everything for agents: <https://agentprime.io/llms.txt>.
