Race Condition in zsmalloc Package
Summary
GSD-2022-1003812: zsmalloc: fix races between asynchronous zspage free and page migration. Affects Kernel versions >= 77ff465799c60294e248000cd22ae8171da3304c, < fc658c083904427abbf8f18280d517ee2668677c. 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 an allocator for compressed pages. It is used to allocate and manage memory in a compressed form, which can be beneficial for systems with limited memory resources. The zsmalloc package is vulnerable to a race condition between asynchronous zspage free and page migration operations.
Vulnerability Detail
The race condition in the zsmalloc package occurs when a zspage is freed asynchronously while a page migration is in progress. This can lead to memory corruption or use-after-free vulnerabilities. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The vulnerability was introduced in version v4.14 of the Linux Kernel and has been fixed in version v5.4.197.
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 patch or update the Linux Kernel to mitigate the risk.
Conclusion
The race condition vulnerability in the zsmalloc package of the Linux Kernel can lead to memory corruption and other security issues. It is crucial to update the Linux Kernel to version v5.4.197 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Zsmalloc is a memory allocator in the Linux Kernel that provides compressed page allocation and management.
A race condition is a software flaw that occurs when the behavior of a program depends on the relative timing of events.
The vulnerability could lead to memory corruption, use-after-free vulnerabilities, or enable arbitrary code execution.
You can use Vulert's 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.
The updated Linux Kernel can be obtained from the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.