Use-after-free vulnerability in dm_cleanup_zoned_dev() in Kernel
Summary
GSD-2022-1001606: dm: fix use-after-free in dm_cleanup_zoned_dev(). Affects Kernel versions >= bb37d77239af25cde59693dbe3fac04dd17d7b29, < fdfe414ca28ddfd562c233fb27385cf820de03e8. 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 the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The dm_cleanup_zoned_dev() function is part of the Device Mapper (DM) subsystem in the Kernel, which is responsible for creating and managing logical block devices. This vulnerability affects the Kernel's ability to properly clean up resources associated with zoned block devices.
Vulnerability Detail
The use-after-free vulnerability in dm_cleanup_zoned_dev() arises when the function attempts to free a zoned block device structure that is still in use. This can lead to a situation where the freed memory is subsequently accessed, potentially resulting in a crash or the execution of arbitrary code. An attacker with sufficient privileges could exploit this vulnerability to gain unauthorized access, escalate privileges, or cause a denial-of-service condition. The vulnerability was introduced in Kernel version v5.14 and is fixed in version v5.16.19.
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
As a temporary workaround, users can avoid the use of zoned block devices or disable the affected functionality in the Kernel configuration. However, these workarounds may limit certain features or functionalities provided by zoned block devices.
Conclusion
The use-after-free vulnerability in dm_cleanup_zoned_dev() poses a potential security risk in the Kernel, allowing for unauthorized access, privilege escalation, or denial-of-service attacks. It is crucial to update the Kernel to version v5.16.19 or later to mitigate this vulnerability. If you require further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially allow an attacker to execute arbitrary code, gain unauthorized access, 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 to the playground and it will provide real-time alerts for open-source vulnerabilities, including this one.
Yes, a patch is available in Kernel version v5.16.19. It is recommended to update to this version or a later one to mitigate the vulnerability.
As mentioned earlier, you can temporarily avoid the use of zoned block devices or disable the affected functionality in the Kernel configuration. However, these workarounds may have limitations and impact certain features provided by zoned block devices.
You can refer to the vulnerability details in the GSD database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001606.json for more information.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.