smb/server: fix possible refcount leak in smb2_sess_setup()
Priority LOW 33Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
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().
Why it matters now
EPSS 0.00441 38th percentileScored 2026-11-07
Fix Fixed Linux (Linux): 6.1.159, 6.6.117, 6.12.59 +3
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 6.1.121 to before 6.1.159; 6.6.67 to before 6.6.117; 6.12.6 to before 6.12.59; 5.15.176 to before 5.16 | 6.1.159, 6.6.117, 6.12.59, 5.16 | Patch available | CNA |
| Linux | Linux | 6.13 and later | 6.1.159, 6.6.117, 6.12.59, 6.17.9, 6.18 | Patch available | CNA |
- Linux VendorLinux Affected 6.1.121 to before 6.1.159; 6.6.67 to before 6.6.117; 6.12.6 to before 6.12.59; 5.15.176 to before 5.16 Fixed in 6.1.159, 6.6.117, 6.12.59, 5.16 Patch available CNA
- Linux VendorLinux Affected 6.13 and later Fixed in 6.1.159, 6.6.117, 6.12.59, 6.17.9, 6.18 Patch available CNA
Remediation
- Fix · CNA Linux (Linux) Fixed in 6.1.159, 6.6.117, 6.12.59, 5.16
- Fix · CNA Linux (Linux) Fixed in 6.1.159, 6.6.117, 6.12.59, 6.17.9, 6.18
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2025-40285
- 2026-10-03 Alias added: GHSA-7645-fj87-x9w4
- 2026-11-07 Affected versions changed · Red Hat
References
Other 5
- https://git.kernel.org/stable/c/6fc935f798d44a8eb8a5e6659198399fbf57b981
- https://git.kernel.org/stable/c/e671f9bb97805771380c98de944e2ceab6949188
- https://git.kernel.org/stable/c/dcc51dfe6ff26b52cac106865a172ac982d78401
- https://git.kernel.org/stable/c/d37b2c81c83d6c0d5ca582f4fe73c672983f9e0d
- https://git.kernel.org/stable/c/379510a815cb2e64eb0a379cb62295d6ade65df0
More Linux vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Incorrect authorization in Ubuntu linux kernel KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2025-40285 · CVE Program
- CVE-2025-40285 · NVD
- FIRST EPSS
- GHSA-7645-fj87-x9w4 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-40285 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences