Use-after-free vulnerability in ubi_create_volume function in Kernel
Summary
GSD-2022-1002645: ubi: ubi_create_volume: Fix use-after-free when volume creation failed. Affects Kernel versions >= 493cfaeaa0c9bc0c79ce5751193d49fdac9aaaec, < 1174ab8ba36a48025b68b5ff1085000b1e510217. 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 provides core functionalities and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and ensures the stability and security of the system. 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 affects the Kernel and specifically impacts the ubi_create_volume function.
Vulnerability Detail
The use-after-free vulnerability in the ubi_create_volume function occurs when volume creation fails. This vulnerability was introduced in version v4.12 of the Linux Kernel and was fixed in version v5.18.4. When volume creation fails, a use-after-free condition can be triggered, leading to potential security issues. An attacker could potentially exploit this vulnerability to execute arbitrary code, escalate privileges, or cause a denial-of-service condition. The vulnerability was discovered and reported by the Cloud Security Alliance.
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 provided for this vulnerability. It is essential to apply the patch or update the Kernel to the fixed version as mentioned in the 'how_to_fix' section.
Conclusion
The use-after-free vulnerability in the ubi_create_volume function of the Kernel can pose significant security risks if left unaddressed. It is crucial to update the Linux Kernel to version v5.18.4 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability could potentially allow an attacker to execute arbitrary code, escalate privileges, or cause a denial-of-service 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, and Vulert will analyze it in real-time.
At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is always recommended to apply security patches promptly to mitigate any potential risks.
This vulnerability requires local access to the system. It cannot be exploited remotely over a network.
For more details about this vulnerability, including the specific code changes and references, you can refer to the source link provided in the 'affected' section of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.