Memory Leak Vulnerability in yam Package
Summary
GSD-2022-1000633: yam: fix a memory leak in yam_siocdevprivate(). Affects Kernel versions >= 0781168e23a2fc8dceb989f11fc5b39b3ccacc35, < deb0f02d08276d87212c1f19d9d919b13dc4c033. 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 yam package is a component of the Linux Kernel, which is responsible for managing network interfaces. It provides functionality for configuring and controlling network devices. The vulnerability in question, identified as GSD-2022-1000633, pertains to a memory leak in the yam_siocdevprivate() function. This function is used to handle private ioctl requests for the yam network driver. The memory leak occurs when certain conditions are met, leading to the allocation of memory that is not properly deallocated. This vulnerability can potentially be exploited by an attacker to exhaust system resources and cause a denial-of-service condition.
Vulnerability Detail
The memory leak vulnerability in yam_siocdevprivate() was introduced in version v4.19 of the Linux Kernel and was fixed in version v5.16.5. When the vulnerable code is executed, memory is allocated but not freed, resulting in a continuous consumption of system resources. This can lead to performance degradation and, in extreme cases, a complete system crash. The impact of this vulnerability depends on the specific usage scenario and the availability of system resources. Successful exploitation of this vulnerability requires the ability to send specially crafted ioctl requests to the yam network driver.
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 →
Workaround
As a workaround, users can disable the yam network driver if it is not required for their system. This can be done by blacklisting the yam module or removing it from the kernel configuration. However, this workaround should only be considered if the yam driver is not essential for the system's functionality.
Conclusion
The memory leak vulnerability in the yam package can result in the consumption of system resources and potential denial-of-service conditions. It is crucial to update the Linux Kernel to version v5.16.5 or later to mitigate this vulnerability. Alternatively, users can disable the yam network driver if it is not required for their system. For further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability can vary depending on the specific usage scenario and the availability of system resources. It can lead to performance degradation and, in extreme cases, a complete system crash.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix to ensure the system is protected.
While updating the Linux Kernel is the recommended approach, users can mitigate this vulnerability by disabling the yam network driver if it is not required for their system. This can be done by blacklisting the yam module or removing it from the kernel configuration.
This report specifically addresses the memory leak vulnerability in yam_siocdevprivate(). For information about other vulnerabilities in the yam package, it is recommended to consult the official Linux Kernel security advisories and vulnerability databases.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.