CVE-2025-71150

Source
https://cve.org/CVERecord?id=CVE-2025-71150
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71150.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-71150
Downstream
Published
2026-01-23T14:15:16.898Z
Modified
2026-03-13T04:06:19.547528Z
Summary
ksmbd: Fix refcount leak when invalid session is found on session lookup
Details

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 SMB2SESSIONVALID, 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 ksmbdusersession_put to release the reference to the session.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71150.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
37a0e2b362b3150317fb6e2139de67b1e29ae5ff
Fixed
0fb87b28cafae71e9c8248432cc3a6a1fd759efc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
450a844c045ff0895d41b05a1cbe8febd1acfcfd
Fixed
e54fb2a4772545701766cba08aab20de5eace8cd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a39e31e22a535d47b14656a7d6a893c7f6cf758c
Fixed
02e06785e85b4bd86ef3d23b7c8d87acc76773d5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b95629435b84b9ecc0c765995204a4d8a913ed52
Fixed
8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7
Fixed
cafb57f7bdd57abba87725eb4e82bbdca4959644
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
2107ab40629aeabbec369cf34b8cf0f288c3eb1b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71150.json"