Vulnerability in Kernel: kunit: fix reference count leak in kfree_at_end
Summary
UVI-2021-1002115: kunit: fix reference count leak in kfree_at_end. Affects Kernel versions < bbdd158b40b66a9403391a517f24ef6613573446. 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 Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The vulnerability in question affects the Kernel's kunit module, which is responsible for unit testing within the Kernel. Unit testing is a crucial part of software development that helps identify and fix bugs early in the development cycle. However, a reference count leak in the kfree_at_end function of the kunit module poses a security risk.
Vulnerability Detail
The vulnerability arises from a reference count leak in the kfree_at_end function of the kunit module. This leak can lead to memory corruption and potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. The vulnerability has not been proven to be exploitable in the wild, but it is essential to address it to maintain the integrity and security of the Kernel. The vulnerability has been fixed in Linux Kernel version v5.14.15 by commit bbdd158b40b66a9403391a517f24ef6613573446.
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 specific workaround mentioned for this vulnerability. The recommended approach is to apply the fix by updating the Linux Kernel to the patched version.
Conclusion
The vulnerability in the Kernel's kunit module, which caused a reference count leak in the kfree_at_end function, has been addressed in Linux Kernel version v5.14.15. It is crucial to update the Kernel to the patched version to mitigate the risk of memory corruption and potential code execution or DoS attacks. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially lead to memory corruption and enable an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.
There is no evidence of this vulnerability being exploited in the wild at the time of its discovery.
You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.
The primary mitigation is to update the Linux Kernel to version v5.14.15 or later, which includes the fix for this vulnerability.
You can refer to the vulnerability database maintained by the Cloud Security Alliance (CSA) for more details. The specific vulnerability entry can be found at: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/UVI-2021-1002115.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.