Memory Leak Vulnerability in Linux Kernel's ksmbd Package
Summary
CVE-2022-49366: In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix reference count leak in smb_check_perm_dacl() The issue happens in a specific path in smb_check_perm_dacl(). Affects linux versions < 5.18.5-1. Fixed in 5.18.5-1. 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 Linux kernel is a core component of many operating systems, providing essential services for hardware and software interaction. The ksmbd module enables SMB (Server Message Block) protocol support, allowing file sharing and printing services over a network. This vulnerability specifically affects the handling of access control lists (ACLs) within the ksmbd module, potentially leading to memory management issues.
Vulnerability Detail
The vulnerability identified as CVE-2022-49366 arises from a reference count leak in the smb_check_perm_dacl() function of the ksmbd module. When both 'id' and 'uid' are equal, the function exits the loop prematurely without decrementing the reference count of the 'posix_acls' object, which was previously incremented by the get_acl() function. This oversight can lead to memory leaks, consuming system resources and potentially degrading performance over time.
How To Fix
Minimum fixed version
5.18.5-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patch as soon as possible.
Conclusion
CVE-2022-49366 represents a significant memory leak vulnerability in the Linux kernel's ksmbd module, which can lead to performance degradation. It is crucial to update to the patched version 5.18.5-1 or later to mitigate this risk. Regular monitoring and updates are essential to maintain system integrity.
See every vulnerability recorded for linux →
FAQ
CVE-2022-49366 is a vulnerability in the Linux kernel's ksmbd module that causes a memory leak due to improper reference counting in the smb_check_perm_dacl() function.
If exploited, this vulnerability can lead to increased memory usage, potentially affecting system performance and stability over time.
Versions of the Linux kernel prior to 5.18.5-1 are affected. You can check your version using the command 'uname -r'.
You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing a manifest file like package-lock.json. It provides real-time alerts for any vulnerabilities detected.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by CVE-2022-49366 without needing to sign up.
Related vulnerabilities
Recent vulnerabilities recorded for linux.