Race Condition in zsmalloc Package
Summary
GSD-2022-1003659: zsmalloc: fix races between asynchronous zspage free and page migration. Affects Kernel versions >= 77ff465799c60294e248000cd22ae8171da3304c, < fae05b2314b147a78fbed1dc4c645d9a66313758. 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.
Vulnerability Detail
The vulnerability identified as GSD-2022-1003659 in the zsmalloc package involves a race condition between asynchronous zspage free and page migration. This race condition can occur when a zspage is freed while it is being migrated to another location. If this race condition is exploited, it could lead to memory corruption or other unpredictable behavior. The vulnerability was introduced in version v4.14 of the Linux Kernel and has been fixed in version v5.10.120.
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 this vulnerability has been fixed in the latest version of the Linux Kernel, there is no specific workaround available. It is advised to update to the patched version to ensure the security and stability of the system.
Conclusion
The race condition vulnerability in the zsmalloc package of the Linux Kernel has been addressed in version v5.10.120. Users are advised to update their systems to the latest version to ensure the security and stability of their systems. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
zsmalloc is a memory allocator for compressed pages in the Linux Kernel. It aims to improve memory utilization by compressing pages before allocating them.
If exploited, this vulnerability can lead to memory corruption or other unpredictable behavior in systems using the affected version of the Linux Kernel.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the playground will provide real-time alerts for open-source vulnerabilities.
No, as this vulnerability has been fixed in the latest version of the Linux Kernel, it is recommended to update to the patched version.
The updated Linux Kernel can be obtained from the official Linux Kernel repository. You can find the latest version, including the fix for this vulnerability, at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.