CVE-2025-40285 Details
Description
In the Linux kernel, the following vulnerability has been resolved: smb/server: fix possible refcount leak in smb2_sess_setup() Reference count of ksmbd_session will leak when session need reconnect. Fix this by adding the missing ksmbd_user_session_put().
A reference count leak vulnerability has been identified in the Linux kernel's SMB2 session setup process. This issue occurs when a session needs to reconnect, leading to a leak in the reference count of the 'ksmbd_session'. The vulnerability has been addressed by adding a missing function call to properly release the session reference. The fix is available in the Linux kernel stable tree.
Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 6, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/379510a815cb2e64eb0a379cb62295d6ade65df0 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6fc935f798d44a8eb8a5e6659198399fbf57b981 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d37b2c81c83d6c0d5ca582f4fe73c672983f9e0d | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/dcc51dfe6ff26b52cac106865a172ac982d78401 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e671f9bb97805771380c98de944e2ceab6949188 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 6, 2025 | New CVE Received | kernel.org |
Volerion