Memory Leak Vulnerability in yam Package
Summary
GSD-2022-1000130: yam: fix a memory leak in yam_siocdevprivate(). Affects Kernel versions >= 0781168e23a2fc8dceb989f11fc5b39b3ccacc35, < 4bd197ce18329e3725fe3af5bd27daa4256d3ac7. 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 yam_siocdevprivate() function is a part of the yam package and is used to handle private network device operations. This vulnerability in yam_siocdevprivate() leads to a memory leak, which can result in the exhaustion of system resources over time.
Vulnerability Detail
The memory leak vulnerability in yam_siocdevprivate() occurs due to improper memory deallocation. When certain network device operations are performed, memory is allocated but not properly freed, leading to a continuous accumulation of memory over time. This can result in resource exhaustion, impacting system performance and stability. An attacker may be able to exploit this vulnerability to cause a denial-of-service (DoS) condition or potentially execute arbitrary code.
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 temporary workaround, users can unload the yam module and reload it periodically to release accumulated memory. This can be done using the following commands:
rmmod yam
modprobe yam
However, this is not a permanent solution and updating the Linux Kernel is strongly recommended.
Conclusion
In conclusion, the yam package in the Linux Kernel is vulnerable to a memory leak issue in the yam_siocdevprivate() function. This vulnerability can lead to memory exhaustion, impacting system performance and stability. It is recommended to update the Linux Kernel to version v4.19.228 or later to fix this issue. As a temporary workaround, unloading and reloading the yam module periodically can release accumulated memory. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to memory exhaustion, impacting system performance and stability. It may also allow attackers to cause a denial-of-service (DoS) condition or potentially execute arbitrary code.
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 memory leak vulnerability in yam.
Yes, the vulnerability has been fixed in Linux Kernel version v4.19.228. Updating the kernel to this version or later will address the memory leak issue in yam_siocdevprivate().
As a temporary workaround, you can unload and reload the yam module periodically to release accumulated memory. However, this is not a permanent solution and updating the Linux Kernel is strongly recommended.
At the time of this report, there are no known exploits for this vulnerability. However, it is important to apply the fix as soon as possible to prevent potential exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.