Use After Free Vulnerability in lib/test Package
Summary
GSD-2022-1002060: lib/test: use after free in register_test_dev_kmod(). Affects Kernel versions >= d9c6a72d6fa29d3a7999dda726577e5d1fccafa5, < 327f07e3704c821ce33e54ef5046bdf69975cb86. 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 lib/test package is a component of the Linux Kernel ecosystem. It provides various testing functionalities for the kernel. The package is responsible for registering test devices and modules. It is widely used in the Linux Kernel for testing purposes.
Vulnerability Detail
The vulnerability identified in the lib/test package is a use after free issue in the register_test_dev_kmod() function. This vulnerability allows an attacker to exploit a freed memory region, leading to potential memory corruption or arbitrary code execution. The vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v5.10.110 by commit 327f07e3704c821ce33e54ef5046bdf69975cb86.
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
No specific workaround has been provided for this vulnerability.
Conclusion
The use after free vulnerability in the lib/test package of the Linux Kernel can lead to memory corruption or arbitrary code execution. It is crucial to update the Linux Kernel to the fixed version to mitigate the risk. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially lead to memory corruption or arbitrary code execution, which can be exploited by an attacker.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will provide real-time alerts for open-source vulnerabilities.
At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix to mitigate any potential risks.
The recommended solution is to update the Linux Kernel to the fixed version. However, if updating is not feasible, you can consider implementing additional security measures, such as strict access controls and monitoring, to mitigate the risk.
You can find more information about this vulnerability in the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and the Cloud Security Alliance's GSD database (https://github.com/cloudsecurityalliance/gsd-database).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.