ksmbd: fix r_count dec/increment mismatch
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.
02 / AFFECTED SOFTWARE
Affected packages
9 explicit affected versions
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/20378cf48359f39dee0ef9b61470ebe77bd49c0d
- https://git.kernel.org/stable/c/457db486203c90e10c3efc87fd45cc7000b1cd36
- https://git.kernel.org/stable/c/4790bcb269e5d6d88200a67c54ae6d627332a3be
- https://git.kernel.org/stable/c/c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9
- https://git.kernel.org/stable/c/ddb7ea36ba7129c2ed107e2186591128618864e1
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22074.json
- https://nvd.nist.gov/vuln/detail/CVE-2025-22074