CVE-2025-22074
ksmbd: fix r_count dec/increment mismatch
Mitigation
- Upgrade Linux to 6.13.11 or later.
Who should check
- Anyone running Linux >= 8e6508c7ecb1802909f294827eff38f301d0c937, < 8829849da3f68697b830a5b36047b0d8a50ae3ed; >= 09aeab68033161cb54f194da93e51a11aee6144b, < 4790bcb269e5d6d88200a67c54ae6d627332a3be; >= a4261bbc33fbf99b99c80aa3a2c5097611802980, < 457db486203c90e10c3efc87fd45cc7000b1cd36; >= f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa, < 20378cf48359f39dee0ef9b61470ebe77bd49c0d; >= 3aa660c059240e0c795217182cf7df32909dd917, < c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9; >= 3aa660c059240e0c795217182cf7df32909dd917, < ddb7ea36ba7129c2ed107e2186591128618864e1; >= 6.6.84, < 6.6.87; >= 6.12.20, < 6.12.23; >= 6.13.8, < 6.13.11
- Anyone running Linux 6.14
Vulnerability facts
- Affected
- Linux >= 8e6508c7ecb1802909f294827eff38f301d0c937, < 8829849da3f68697b830a5b36047b0d8a50ae3ed; >= 09aeab68033161cb54f194da93e51a11aee6144b, < 4790bcb269e5d6d88200a67c54ae6d627332a3be; >= a4261bbc33fbf99b99c80aa3a2c5097611802980, < 457db486203c90e10c3efc87fd45cc7000b1cd36; >= f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa, < 20378cf48359f39dee0ef9b61470ebe77bd49c0d; >= 3aa660c059240e0c795217182cf7df32909dd917, < c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9; >= 3aa660c059240e0c795217182cf7df32909dd917, < ddb7ea36ba7129c2ed107e2186591128618864e1; >= 6.6.84, < 6.6.87; >= 6.12.20, < 6.12.23; >= 6.13.8, < 6.13.11; Linux 6.14
- Fixed in
- Linux 8829849da3f68697b830a5b36047b0d8a50ae3ed, Linux 4790bcb269e5d6d88200a67c54ae6d627332a3be, Linux 457db486203c90e10c3efc87fd45cc7000b1cd36, Linux 20378cf48359f39dee0ef9b61470ebe77bd49c0d, Linux 6.6.87, Linux 6.12.23, Linux 6.13.11
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.78% chance of exploitation in 30 days (percentile 52, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix r_count dec/increment mismatch r_count is only increased when there is an oplock break wait, so r_count inc/decrement are not paired. This can cause r_count to become negative, which can lead to a problem where the ksmbd thread does not terminate.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8e6508c7ecb1802909f294827eff38f301d0c937, < 8829849da3f68697b830a5b36047b0d8a50ae3ed; >= 09aeab68033161cb54f194da93e51a11aee6144b, < 4790bcb269e5d6d88200a67c54ae6d627332a3be; >= a4261bbc33fbf99b99c80aa3a2c5097611802980, < 457db486203c90e10c3efc87fd45cc7000b1cd36; >= f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa, < 20378cf48359f39dee0ef9b61470ebe77bd49c0d; >= 3aa660c059240e0c795217182cf7df32909dd917, < c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9; >= 3aa660c059240e0c795217182cf7df32909dd917, < ddb7ea36ba7129c2ed107e2186591128618864e1; >= 6.6.84, < 6.6.87; >= 6.12.20, < 6.12.23; >= 6.13.8, < 6.13.11 | — | cvelist |
| Linux | 6.14 | — | 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-22074. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-22074.md Affected: Linux >= 8e6508c7ecb1802909f294827eff38f301d0c937, < 8829849da3f68697b830a5b36047b0d8a50ae3ed; >= 09aeab68033161cb54f194da93e51a11aee6144b, < 4790bcb269e5d6d88200a67c54ae6d627332a3be; >= a4261bbc33fbf99b99c80aa3a2c5097611802980, < 457db486203c90e10c3efc87fd45cc7000b1cd36; >= f17d1c63a76b0fe8e9c7802… Fixed in: Linux 8829849da3f68697b830a5b36047b0d8a50ae3ed, Linux 4790bcb269e5d6d88200a67c54ae6d627332a3be, Linux 457db486203c90e10c3efc87fd45cc7000b1cd36, Linux 20378cf48359f39dee0ef9b61470ebe77bd49c0d, Linux 6.6.87, Linux 6.12.23, Linux 6.13.11 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/4790bcb269e5d6d88200a67c54ae6d627332a3be
- https://git.kernel.org/stable/c/457db486203c90e10c3efc87fd45cc7000b1cd36
- https://git.kernel.org/stable/c/20378cf48359f39dee0ef9b61470ebe77bd49c0d
- https://git.kernel.org/stable/c/c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9
- https://git.kernel.org/stable/c/ddb7ea36ba7129c2ed107e2186591128618864e1
FAQ
Is CVE-2025-22074 being exploited?
There is no confirmed exploitation: CVE-2025-22074 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-22074?
High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2025-22074?
Linux >= 8e6508c7ecb1802909f294827eff38f301d0c937, < 8829849da3f68697b830a5b36047b0d8a50ae3ed; >= 09aeab68033161cb54f194da93e51a11aee6144b, < 4790bcb269e5d6d88200a67c54ae6d627332a3be; >= a4261bbc33fbf99b99c80aa3a2c5097611802980, < 457db486203c90e10c3efc87fd45cc7000b1cd36; >= f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa, < 20378cf48359f39dee0ef9b61470ebe77bd49c0d; >= 3aa660c059240e0c795217182cf7df32909dd917, < c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9; >= 3aa660c059240e0c795217182cf7df32909dd917, < ddb7ea36ba7129c2ed107e2186591128618864e1; >= 6.6.84, < 6.6.87; >= 6.12.20, < 6.12.23; >= 6.13.8, < 6.13.11; Linux 6.14.
Is there a fix for CVE-2025-22074?
Yes. Fixed in Linux 8829849da3f68697b830a5b36047b0d8a50ae3ed, Linux 4790bcb269e5d6d88200a67c54ae6d627332a3be, Linux 457db486203c90e10c3efc87fd45cc7000b1cd36, Linux 20378cf48359f39dee0ef9b61470ebe77bd49c0d, Linux 6.6.87, Linux 6.12.23, Linux 6.13.11. Upgrade Linux to 6.13.11 or later.
How do I check if I'm affected by CVE-2025-22074?
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.