Use-after-free vulnerability in ubi_create_volume in Kernel
Summary
GSD-2022-1003710: ubi: ubi_create_volume: Fix use-after-free when volume creation failed. Affects Kernel versions >= 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, < 8302620aeb940f386817321d272b12411ae7d39f. 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 crucial 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 ubi_create_volume function is responsible for creating volumes in the UBI (Unsorted Block Images) subsystem, which is used for managing flash storage devices. This vulnerability in ubi_create_volume can lead to a use-after-free scenario when volume creation fails.
Vulnerability Detail
The use-after-free vulnerability in ubi_create_volume occurs when the function fails to create a volume in the UBI subsystem. In this scenario, the function does not properly handle the failure, resulting in a use-after-free condition. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service by manipulating the freed memory. The vulnerability was introduced in version v4.12 of the Linux Kernel and is fixed in version v5.4.198.
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. It is advised to apply the fix by updating the Linux Kernel to the recommended version.
Conclusion
The use-after-free vulnerability in ubi_create_volume in the Kernel can have serious security implications, allowing attackers to execute arbitrary code or cause a denial-of-service. It is crucial to update the Linux Kernel to the recommended version to mitigate this vulnerability. For further support on 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 cause a denial-of-service by exploiting the use-after-free condition.
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 to the playground, and it will provide real-time alerts for open-source vulnerabilities, including this one.
At the time of this report, there are no known public exploits 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. There are no alternative solutions mentioned for this specific vulnerability.
You can find more information about this vulnerability in the GSD-2022-1003710 entry of the GSD database maintained by the Cloud Security Alliance. The entry can be accessed at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003710.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.