ksmbd: Fix reference count leak in smb_check_perm_dacl()
Summary
GSD-2022-1002976: ksmbd: fix reference count leak in smb_check_perm_dacl(). Affects Kernel versions >= 777cad1604d68ed4379ec899d1f7d2f6a29f01f0, < 248d71b440aef829f5cc5f6545ca113ef5062900. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The ksmbd package is a component of the Linux Kernel ecosystem. It provides support for the Server Message Block (SMB) protocol, allowing Linux systems to act as SMB servers. The package handles permission checks for SMB requests, ensuring that access to files and directories is properly authorized. However, a vulnerability has been discovered in the smb_check_perm_dacl() function, which can lead to a reference count leak. This vulnerability may allow an attacker to exhaust system resources, potentially leading to a denial-of-service (DoS) condition.
Vulnerability Detail
The vulnerability in ksmbd's smb_check_perm_dacl() function was introduced in version v5.15 of the Linux Kernel and fixed in version v5.17.15. The function fails to properly handle reference counts, resulting in a leak. An attacker could exploit this vulnerability by sending specially crafted SMB requests, causing the reference count to increment repeatedly and exhausting system resources. This could lead to a DoS condition, impacting the availability of the affected system. It is important to note that the impact and attack plausibility of this vulnerability have not yet been proven.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Conclusion
In conclusion, the ksmbd package in the Linux Kernel is vulnerable to a reference count leak in the smb_check_perm_dacl() function. This vulnerability can potentially lead to a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.17.15 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
ksmbd is a component of the Linux Kernel that enables Linux systems to act as SMB servers, providing support for the Server Message Block protocol.
smb_check_perm_dacl() is a function in ksmbd that handles permission checks for SMB requests, ensuring proper authorization for file and directory access.
The vulnerability can lead to a denial-of-service (DoS) condition by exhausting system resources. However, the actual impact and attack plausibility have not yet been proven.
To fix this vulnerability, update the Linux Kernel to version v5.17.15 or later, which includes the necessary fix for smb_check_perm_dacl().
No specific workaround has been provided for this vulnerability. It is recommended to apply the official fix by updating the Linux Kernel.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.