CVE-2025-71150

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

MEDIUM
5.5
CVSS Score
Published: January 23, 2026 at 02:15 PM UTC
Updated: July 30, 2026 at 06:42 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15.176 ≤ v < 5.15.2035.15.176 ≤ v < 5.166.1.121 ≤ v < 6.1.1606.12.6 ≤ v < 6.12.646.13 ≤ v < 6.18.36.13 ≤ v < 6.196.13.1 ≤ v < 6.18.36.6.67 ≤ v < 6.6.1202107ab40629aeabbec369cf34b8cf0f288c3eb1b37a0e2b362b3150317fb6e2139de67b1e29ae5ff450a844c045ff0895d41b05a1cbe8febd1acfcfd5.15.1766.1.1216.12.66.136.13 rc36.13 rc46.13 rc56.13 rc66.13 rc76.19 rc16.6.67a39e31e22a535d47b14656a7d6a893c7f6cf758cb95629435b84b9ecc0c765995204a4d8a913ed52
Vendor states this is fixed in 02e06785e85b4bd86ef3d23b7c8d87acc76773d5 (fixed)
Vendor states this is fixed in 0fb87b28cafae71e9c8248432cc3a6a1fd759efc (fixed)
Vendor states this is fixed in 11fe566b442e3bc2774191740fd377739a87a1c0 (fixed)
Vendor states this is fixed in 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7 (fixed)
Vendor states this is fixed in cafb57f7bdd57abba87725eb4e82bbdca4959644 (fixed)
Vendor states this is fixed in e54fb2a4772545701766cba08aab20de5eace8cd (fixed)
Vendor states this is fixed in 5.15.203 (unaffected)
Affected range stops below 5.16, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.160 (unaffected)
Vendor states this is fixed in 6.12.64 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.18.3 (unaffected)
Vendor states this is fixed in 6.19 (unaffected)
Vendor states this is fixed in 6.6.120 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card