Back to CVE records
Medium 5.5Published Sep 16, 2025

CVE-2025-39819fs/smb: Fix inconsistent refcnt update

Updated under an hour ago ()

Does this affect you?

It affects Linux and 3 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

In the Linux kernel, the following vulnerability has been resolved: fs/smb: Fix inconsistent refcnt update A possible inconsistent update of refcount was identified in `smb2_compound_op`. Such inconsistent update could lead to possible resource leaks. Why it is a possible bug: 1. In the comment section of the function, it clearly states that the reference to `cfile` should be dropped after calling this function. 2. Every control flow path would check and drop the reference to `cfile`, except the patched one. 3. Existing callers would not handle refcount update of `cfile` if -ENOMEM is returned. To fix the bug, an extra goto label "out" is added, to make sure that the cleanup logic would always be respected. As the problem is caused by the allocation failure of `vars`, the cleanup logic between label "finished" and "out" can be safely ignored. According to the definition of function `is_replayable_error`, the error code of "-ENOMEM" is not recoverable. Therefore, the replay logic also gets ignored.

CVSS
5.5 MEDIUM (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
Not given
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Linux
NVD analysis
Modified
Record last updated
May 12, 2026
First seen by InfoSec Signals
Oct 19, 2026

Affected products

Affected products
Linux Linux
linux:linux (from the name)
from a7d5c294628088781da9e91cbb034d61c3a71f71 before 3fc11ff13fbc2749871d6ac2141685cf54699997; from a7d5c294628088781da9e91cbb034d61c3a71f71 before 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141; from a7d5c294628088781da9e91cbb034d61c3a71f71 before 4735f5991f51468b85affb8366b7067248457a71; from a7d5c294628088781da9e91cbb034d61c3a71f71 before cc82c6dff548f0066a51a6e577c7454e7d26a968; from a7d5c294628088781da9e91cbb034d61c3a71f71 before ab529e6ca1f67bcf31f3ea80c72bffde2e9e053e
CNA record
Siemens SIMATIC CN 4100
siemens:simatic_cn_4100 (from the name)
before V5.0
CISA ADP
linux linux_kernel
linux:linux_kernel
from 5.8 before 6.1.150; from 6.2 before 6.6.104; from 6.7 before 6.12.45; from 6.13 before 6.16.5; 6.17; 6.17; 6.17
NVD
debian debian_linux
debian:debian_linux
11.0
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.