CVE-2025-22074: ksmbd: fix r_count dec/increment mismatch
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix rcount dec/increment mismatch
rcount is only increased when there is an oplock break wait, so rcount inc/decrement are not paired. This can cause rcount to become negative, which can lead to a problem where the ksmbd thread does not terminate.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.25-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.87 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.23 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.13.11 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.14.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-22074?
CVE-2025-22074 has been classified as a moderate severity vulnerability in the Linux kernel.
What causes CVE-2025-22074?
CVE-2025-22074 is caused by a r_count increment and decrement mismatch during oplock break waits in the ksmbd module.
How do I fix CVE-2025-22074?
To fix CVE-2025-22074, update to the latest version of the Linux kernel where this vulnerability has been patched.
Which versions of the Linux kernel are affected by CVE-2025-22074?
CVE-2025-22074 affects certain versions of the Linux kernel that utilize the ksmbd module.
Is CVE-2025-22074 exploitable remotely?
Yes, CVE-2025-22074 may be exploited remotely under certain conditions related to shared SMB file access.