CVE-2025-39819
fs/smb: Fix inconsistent refcnt update
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 3fc11ff13fbc2749871d6ac2141685cf54699997; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4735f5991f51468b85affb8366b7067248457a71; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < cc82c6dff548f0066a51a6e577c7454e7d26a968; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < ab529e6ca1f67bcf31f3ea80c72bffde2e9e053e
- Anyone running Linux 5.8
Vulnerability facts
- Affected
- Linux >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 3fc11ff13fbc2749871d6ac2141685cf54699997; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4735f5991f51468b85affb8366b7067248457a71; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < cc82c6dff548f0066a51a6e577c7454e7d26a968; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < ab529e6ca1f67bcf31f3ea80c72bffde2e9e053e; Linux 5.8
- Fixed in
- Linux 3fc11ff13fbc2749871d6ac2141685cf54699997, Linux 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141, Linux 4735f5991f51468b85affb8366b7067248457a71
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 3fc11ff13fbc2749871d6ac2141685cf54699997; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4735f5991f51468b85affb8366b7067248457a71; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < cc82c6dff548f0066a51a6e577c7454e7d26a968; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < ab529e6ca1f67bcf31f3ea80c72bffde2e9e053e | — | cvelist |
| Linux | 5.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-39819. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-39819.md Affected: Linux >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 3fc11ff13fbc2749871d6ac2141685cf54699997; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4735f5991f51468b85affb8366b7067248457a71; >= a7d5c294628088781da9e91… Fixed in: Linux 3fc11ff13fbc2749871d6ac2141685cf54699997, Linux 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141, Linux 4735f5991f51468b85affb8366b7067248457a71 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/3fc11ff13fbc2749871d6ac2141685cf54699997
- https://git.kernel.org/stable/c/4191ea1f0bb3e27d65c5dcde7bd00e709ec67141
- https://git.kernel.org/stable/c/4735f5991f51468b85affb8366b7067248457a71
- https://git.kernel.org/stable/c/cc82c6dff548f0066a51a6e577c7454e7d26a968
- https://git.kernel.org/stable/c/ab529e6ca1f67bcf31f3ea80c72bffde2e9e053e
FAQ
Is CVE-2025-39819 being exploited?
There is no confirmed exploitation: CVE-2025-39819 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-39819?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-39819?
Linux >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 3fc11ff13fbc2749871d6ac2141685cf54699997; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < 4735f5991f51468b85affb8366b7067248457a71; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < cc82c6dff548f0066a51a6e577c7454e7d26a968; >= a7d5c294628088781da9e91cbb034d61c3a71f71, < ab529e6ca1f67bcf31f3ea80c72bffde2e9e053e; Linux 5.8.
Is there a fix for CVE-2025-39819?
Yes. Fixed in Linux 3fc11ff13fbc2749871d6ac2141685cf54699997, Linux 4191ea1f0bb3e27d65c5dcde7bd00e709ec67141, Linux 4735f5991f51468b85affb8366b7067248457a71. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-39819?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.