Race Condition in zsmalloc Package
Summary
GSD-2022-1002867: zsmalloc: fix races between asynchronous zspage free and page migration. Affects Kernel versions >= 77ff465799c60294e248000cd22ae8171da3304c, < c5402fb5f71f1a725f1e55d9c6799c0c7bec308f. 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 zsmalloc package is a component of the Linux Kernel that provides a memory allocator for compressed pages. It is designed to improve memory utilization by compressing pages before allocating them. This package is used in various Linux distributions and is an integral part of the kernel's memory management subsystem. However, a race condition has been discovered in the zsmalloc package, which can lead to potential security vulnerabilities.
Vulnerability Detail
The race condition in the zsmalloc package occurs between asynchronous zspage free and page migration. This vulnerability can be exploited by an attacker to cause memory corruption or trigger a use-after-free condition. The race condition arises when a zspage is freed asynchronously while a page migration is in progress, leading to inconsistent state and potential memory access issues. If successfully exploited, an attacker may be able to execute arbitrary code or crash the system.
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 essential to apply the recommended fix by updating the Linux Kernel to the latest version.
Conclusion
The race condition in the zsmalloc package poses a significant security risk, potentially leading to memory corruption and code execution. It is crucial for users to update their Linux Kernel installations to the latest version to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
zsmalloc is a memory allocator in the Linux Kernel that compresses pages before allocating them, improving memory utilization.
This vulnerability can lead to memory corruption, use-after-free conditions, and potential code execution or system crashes.
You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. No signup is required, and you can analyze your application using the provided manifest file.
No, there is no known workaround for this vulnerability. Updating the Linux Kernel to the latest version is the recommended solution.
You can find more information about this vulnerability in the Open Source Vulnerability Database (OSVDB) at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1002xxx/GSD-2022-1002867.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.