CVE-2025-40103
smb: client: Fix refcount leak for cifs_sb_tlink
Check your servers for CVE-2025-40103
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-40103 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
smb: client: Fix refcount leak for cifs_sb_tlink
Fix three refcount inconsistency issues related to `cifs_sb_tlink`.
Comments for `cifs_sb_tlink` state that `cifs_put_tlink()` needs to be called after successful calls to `cifs_sb_tlink()`. Three calls fail to update refcount accordingly, leading to possible resource leaks.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8ceb984379462f94bdebef3288d569c6e1f912ea, before d3c8ea197055c260119a13360e8202a27e53e1e4 affected from 8ceb984379462f94bdebef3288d569c6e1f912ea, before 790282abe9d805f08618c1c24ea2529e7259b692 affected from 8ceb984379462f94bdebef3288d569c6e1f912ea, before d7dd034c14928306db1b46be277ae439b84dacf9 affected from 8ceb984379462f94bdebef3288d569c6e1f912ea, before e15605b68b490186da2ad8029c0351a9cfb0b9af affected from 8ceb984379462f94bdebef3288d569c6e1f912ea, before 896bb31e1416f582503db1350cf1bd10dc64e5a6 affected from 8ceb984379462f94bdebef3288d569c6e1f912ea, before c2b77f42205ef485a647f62082c442c1cd69d3fc
Other versions: unaffected
|
| Linux |
affected 3.7 unaffected before 3.7 unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.158 up to and including 6.1.* unaffected from 6.6.114 up to and including 6.6.* unaffected from 6.12.55 up to and including 6.12.* unaffected from 6.17.5 up to and including 6.17.* unaffected 6.18 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-40103 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40103
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-40103
trivy image --scanners vuln IMAGE | grep CVE-2025-40103
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
- https://git.kernel.org/stable/c/d3c8ea197055c260119a13360e8202a27e53e1e4 git.kernel.org
- https://git.kernel.org/stable/c/790282abe9d805f08618c1c24ea2529e7259b692 git.kernel.org
- https://git.kernel.org/stable/c/d7dd034c14928306db1b46be277ae439b84dacf9 git.kernel.org
- https://git.kernel.org/stable/c/e15605b68b490186da2ad8029c0351a9cfb0b9af git.kernel.org
- https://git.kernel.org/stable/c/896bb31e1416f582503db1350cf1bd10dc64e5a6 git.kernel.org
- https://git.kernel.org/stable/c/c2b77f42205ef485a647f62082c442c1cd69d3fc git.kernel.org
Source: the record CVE-2025-40103 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.
Vulnpocalypse