Use After Free Vulnerability in lib/test Package
Summary
GSD-2022-1001802: lib/test: use after free in register_test_dev_kmod(). Affects Kernel versions >= d9c6a72d6fa29d3a7999dda726577e5d1fccafa5, < 611170142b4244d7d6edba1e3400517d8625296b. 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 testing utilities and functions for kernel modules. The package is responsible for registering and managing test devices used in kernel testing. It is an essential part of the kernel development and testing process.
Vulnerability Detail
The use after free vulnerability in the register_test_dev_kmod() function of the lib/test package allows an attacker to exploit a memory corruption issue. By manipulating certain parameters, an attacker can trigger the use of a freed memory block, leading to potential arbitrary code execution or a system crash. This vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v5.15.33.
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. It is recommended to apply the fix mentioned above.
Conclusion
The use after free vulnerability in the lib/test package of the Linux Kernel can lead to potential code execution or system crashes. It is crucial to update the Linux Kernel to version v5.15.33 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially allow an attacker to execute arbitrary code or crash the system.
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, no known exploits for this vulnerability have been disclosed.
The recommended mitigation is to update the Linux Kernel to the fixed version mentioned above.
You can find more information about this vulnerability in the GSD-2022-1001802 report at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001802.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.