Use After Free Vulnerability in lib/test Package
Summary
GSD-2022-1002226: lib/test: use after free in register_test_dev_kmod(). Affects Kernel versions >= d9c6a72d6fa29d3a7999dda726577e5d1fccafa5, < 1f316b42a8e30ccb6524d2f3812b122f46a6e40d. 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 functionality for various kernel modules. The package is responsible for registering and managing test devices used in kernel testing scenarios. It is an essential part of the kernel development process, ensuring the stability and reliability of the Linux Kernel.
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 freed memory region. This can lead to a variety of security issues, including remote code execution, privilege escalation, and denial of service attacks. The vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v5.4.189. The vulnerability was discovered and reported by an automated security analysis tool.
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
There is no known workaround for this vulnerability. It is crucial to apply the fix by updating the Linux Kernel to the patched version.
Conclusion
The use after free vulnerability in the lib/test package of the Linux Kernel can have severe security implications. It is crucial to update the Linux Kernel to version v5.4.189 or later to fix this vulnerability. Regularly updating the kernel is essential to ensure the latest security patches are applied. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The use after free vulnerability can have severe consequences, including remote code execution, privilege escalation, and denial of service attacks. It is crucial to patch the vulnerability to prevent potential exploitation.
This vulnerability was discovered by an automated security analysis tool. The tool identified the use after free pattern in the register_test_dev_kmod() function and flagged it as a potential vulnerability.
The vulnerability was introduced in version v4.13 of the Linux Kernel. All versions between v4.13 and v5.4.189 are affected. The vulnerability is fixed in version v5.4.189 and later.
At the time of discovery, no known exploits for this vulnerability were reported. However, it is important to patch the vulnerability as soon as possible to mitigate any potential risks.
For more details about this vulnerability, including the specific code changes that fix it, you can refer to the source link provided in the vulnerability details section.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.