ksmbd: Fix refcount leak when invalid session is found on session lookup
Summary
| CVE | CVE-2025-71150 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-01-23 15:16:05 UTC |
| Updated | 2026-04-18 09:16:13 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: NVD-CWE-Other
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 2107ab40629aeabbec369cf34b8cf0f288c3eb1b 11fe566b442e3bc2774191740fd377739a87a1c0 git | Not specified |
| CNA | Linux | Linux | affected 37a0e2b362b3150317fb6e2139de67b1e29ae5ff 0fb87b28cafae71e9c8248432cc3a6a1fd759efc git | Not specified |
| CNA | Linux | Linux | affected 450a844c045ff0895d41b05a1cbe8febd1acfcfd e54fb2a4772545701766cba08aab20de5eace8cd git | Not specified |
| CNA | Linux | Linux | affected a39e31e22a535d47b14656a7d6a893c7f6cf758c 02e06785e85b4bd86ef3d23b7c8d87acc76773d5 git | Not specified |
| CNA | Linux | Linux | affected b95629435b84b9ecc0c765995204a4d8a913ed52 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7 git | Not specified |
| CNA | Linux | Linux | affected b95629435b84b9ecc0c765995204a4d8a913ed52 cafb57f7bdd57abba87725eb4e82bbdca4959644 git | Not specified |
| CNA | Linux | Linux | affected 6.13 | Not specified |
| CNA | Linux | Linux | unaffected 6.13 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.203 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.160 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.120 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.64 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.3 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/11fe566b442e3bc2774191740fd377739a87a1c0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/02e06785e85b4bd86ef3d23b7c8d87acc76773d5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/cafb57f7bdd57abba87725eb4e82bbdca4959644 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/0fb87b28cafae71e9c8248432cc3a6a1fd759efc | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/e54fb2a4772545701766cba08aab20de5eace8cd | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.