CVE-2025-71150

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

7.5 high EPSS 0.28%

Published 23 Jan 2026 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2025-71150

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71150 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2107ab40629aeabbec369cf34b8cf0f288c3eb1b, before 11fe566b442e3bc2774191740fd377739a87a1c0
affected from 37a0e2b362b3150317fb6e2139de67b1e29ae5ff, before 0fb87b28cafae71e9c8248432cc3a6a1fd759efc
affected from 450a844c045ff0895d41b05a1cbe8febd1acfcfd, before e54fb2a4772545701766cba08aab20de5eace8cd
affected from a39e31e22a535d47b14656a7d6a893c7f6cf758c, before 02e06785e85b4bd86ef3d23b7c8d87acc76773d5
affected from b95629435b84b9ecc0c765995204a4d8a913ed52, before 8cabcb4dd3dc85dd83a37d26efcc59a66a4074d7
affected from b95629435b84b9ecc0c765995204a4d8a913ed52, before cafb57f7bdd57abba87725eb4e82bbdca4959644
affected from 5.15.176, before 5.15.203
affected from 6.1.121, before 6.1.160
affected from 6.6.67, before 6.6.120
affected from 6.12.6, before 6.12.64
Other versions: unaffected
Linux
affected 6.13
unaffected before 6.13
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.160 up to and including 6.1.*
unaffected from 6.6.120 up to and including 6.6.*
unaffected from 6.12.64 up to and including 6.12.*
unaffected from 6.18.3 up to and including 6.18.*
unaffected 6.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71150 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71150

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-71150
trivy image --scanners vuln IMAGE | grep CVE-2025-71150

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-71150 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.