VDB

CVE-2025-40285

CVE-2025-40285 PUBLISHED CVSS 7.5 HIGH

smb/server: fix possible refcount leak in smb2_sess_setup()

Reported by linux · Published December 6, 2025

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().

EPSS 0.44% · 39.4th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.18, 6.17.9, 6.12.59, 6.6.117, 6.1.159
LinuxLinuxdcc51dfe6ff26b52cac106865a172ac982d78401, d37b2c81c83d6c0d5ca582f4fe73c672983f9e0d, 6.12.59, 6.6.117, 6.1.159, 5.16, 379510a815cb2e64eb0a379cb62295d6ade65df0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score
0.44%
39.4th percentile

Affected products

VendorProductVersions
LinuxLinux37a0e2b362b3150317fb6e2139de67b1e29ae5ff, 450a844c045ff0895d41b05a1cbe8febd1acfcfd, a39e31e22a535d47b14656a7d6a893c7f6cf758c
LinuxLinux6.13, 0, 6.1.159
linuxlinux_kernel6.1.121, 6.12.6, 6.13
LinuxLinux*, 37a0e2b362b3150317fb6e2139de67b1e29ae5ff, 450a844c045ff0895d41b05a1cbe8febd1acfcfd

Timeline

  • Dec 6, 2025 CVE Published
  • Dec 7, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (166 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (169 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40285
vulnetix vdb fixes CVE-2025-40285

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40285/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›