CVE-2025-71150
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 2107ab40629aeabbec369cf34b8cf0f288c3eb1b before 11fe566b442e3bc2774191740fd377739a87a1c0, from 37a0e2b362b3150317fb6e2139de67b1e29ae5ff before 0fb87b28cafae71e9c8248432cc3a6a1fd759efc, from 450a844c045ff0895d41b05a1cbe8febd1acfcfd before e54fb2a4772545701766cba08aab20de5eace8cd, from a39e31e22a535d47b14656a7d6a893c7f6cf758c before 02e06785e85b4bd86ef3d23b7c8d87acc76773d5, from b95629435b84b9ecc0c765995204a4d8a913ed52 before 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7, from b95629435b84b9ecc0c765995204a4d8a913ed52 before cafb57f7bdd57abba87725eb4e82bbdca4959644, from 5.15.176 before 5.15.203, from 6.1.121 before 6.1.160 and 3 more
Not affected: before 6.13, from 5.15.203 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.64 up to 6.12.*, from 6.18.3 up to 6.18.*
CVE List
linux linux_kernelfrom 5.15.176 before 5.16, from 6.1.121 before 6.1.160, from 6.6.67 before 6.6.120, from 6.12.6 before 6.12.64, from 6.13.1 before 6.18.3, 6.13, 6.19NVD

All scores

Linux7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ksmbd: Soluciona la fuga de contador de referencias cuando se encuentra una sesión inválida en la búsqueda de sesión Cuando se encuentra una sesión pero su estado no es SMB2_SESSION_VALID, indica que no se encontró ninguna sesión válida, pero falta decrementar el contador de referencias adquirido por la búsqueda de sesión, lo que resulta en una fuga de contador de referencias. Este parche soluciona el problema llamando explícitamente a ksmbd_user_session_put para liberar la referencia a la sesión.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71150 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-71150 changed 2026-07-30Public domain