# CVE-2025-22074: ksmbd: fix r\_count dec/increment mismatch

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.78% (percentile 52, 2026-11-26)
- **Published:** 2025-04-16T14:12:25.921Z
- **Modified:** 2026-10-30T13:17:56.687Z

## 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

## 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

- 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)

## Mitigation

- Upgrade Linux to 6.13.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/4790bcb269e5d6d88200a67c54ae6d627332a3be>
- patch: <https://git.kernel.org/stable/c/457db486203c90e10c3efc87fd45cc7000b1cd36>
- patch: <https://git.kernel.org/stable/c/20378cf48359f39dee0ef9b61470ebe77bd49c0d>
- patch: <https://git.kernel.org/stable/c/c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9>
- patch: <https://git.kernel.org/stable/c/ddb7ea36ba7129c2ed107e2186591128618864e1>
- other: <https://git.kernel.org/stable/c/8829849da3f68697b830a5b36047b0d8a50ae3ed>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22074>

HTML: <https://flawdb.com/CVE-2025-22074> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22074>
