{"schema_version":"1.9.0","id":"CVE-2025-22074","published":"2025-04-16T14:12:25.921Z","modified":"2026-08-12T03:51:12.059513277Z","summary":"ksmbd: fix r_count dec/increment mismatch","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix r_count dec/increment mismatch\n\nr_count is only increased when there is an oplock break wait,\nso r_count inc/decrement are not paired. This can cause r_count\nto become negative, which can lead to a problem where the ksmbd\nthread does not terminate.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"09aeab68033161cb54f194da93e51a11aee6144b"},{"fixed":"4790bcb269e5d6d88200a67c54ae6d627332a3be"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a4261bbc33fbf99b99c80aa3a2c5097611802980"},{"fixed":"457db486203c90e10c3efc87fd45cc7000b1cd36"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa"},{"fixed":"20378cf48359f39dee0ef9b61470ebe77bd49c0d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3aa660c059240e0c795217182cf7df32909dd917"},{"fixed":"c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9"},{"fixed":"ddb7ea36ba7129c2ed107e2186591128618864e1"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6.6.84"},{"fixed":"6.6.87"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6.12.20"},{"fixed":"6.12.23"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6.13.8"},{"fixed":"6.13.11"}]}],"versions":["v6.6.86","v6.6.85","v6.6.84","v6.12.22","v6.12.21","v6.12.20","v6.13.10","v6.13.9","v6.13.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22074.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.6.87"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.23"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.13.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.14.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22074.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/20378cf48359f39dee0ef9b61470ebe77bd49c0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/457db486203c90e10c3efc87fd45cc7000b1cd36"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4790bcb269e5d6d88200a67c54ae6d627332a3be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2ec33d46b4d1c8085dab5d02e00b21f4f0fb8a9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ddb7ea36ba7129c2ed107e2186591128618864e1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22074.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22074"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22074.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}