Skip to main content
← All vulnerabilities
CVE-2025-71150

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.203, 6.1.160, 6.6.120, 6.12.64
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.15.176 · fixed in 5.15.203; From 6.1.121 · fixed in 6.1.160; From 6.6.67 · fixed in 6.6.120; From 6.12.6 · fixed in 6.12.64

  • Linux Linux

    6.13

References 6

git.kernel.org