# CVE-2025-22074: ksmbd: fix r_count dec/increment mismatch

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-04-16T14:12:25.921Z
- Modified: 2026-10-30T13:17:56.687Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 8e6508c7ecb1802909f294827eff38f301d0c937 before 8829849da3f68697b830a5b36047b0d8a50ae3ed; from 09aeab68033161cb54f194da93e51a11aee6144b before 4790bcb269e5d6d88200a67c54ae6d627332a3be; from a4261bbc33fbf99b99c80aa3a2c5097611802980 before 457db486203c90e10c3efc87fd45cc7000b1cd36; from f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa before 20378cf48359f39dee0ef9b61470ebe77bd49c0d; from 3aa660c059240e0c795217182cf7df32909dd917 before c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9; from 3aa660c059240e0c795217182cf7df32909dd917 before ddb7ea36ba7129c2ed107e2186591128618864e1; from 6.6.84 before 6.6.87; from 6.12.20 before 6.12.23; from 6.13.8 before 6.13.11; 6.14 (not affected: before 6.14; from 6.6.87 up to 6.6.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.6.84 before 6.6.87; from 6.12.20 before 6.12.23; from 6.13.8 before 6.13.11; 6.14; 6.14.1

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/8829849da3f68697b830a5b36047b0d8a50ae3ed>
- <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> (patch)

## Sources

- CVE List: [CVE-2025-22074](https://www.cve.org/CVERecord?id=CVE-2025-22074), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-22074](https://nvd.nist.gov/vuln/detail/CVE-2025-22074), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-22074 · Whole record: https://cve.day/CVE-2025-22074.json · Rebuilt by cve.day 2026-11-25T22:58:56.596Z
