Race Condition in zsmalloc Package: Fix for Asynchronous zspage Free and Page Migration
Summary
GSD-2022-1004023: zsmalloc: fix races between asynchronous zspage free and page migration. Affects Kernel versions >= 77ff465799c60294e248000cd22ae8171da3304c, < 3674d8a8dadd03a447dd21069d4dacfc3399b63b. 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, which provides a memory allocator for compressed pages. It is designed to improve memory utilization by compressing pages before storing them in memory. This package is used in various Linux distributions and is an integral part of the kernel's memory management subsystem. However, a vulnerability has been identified in the zsmalloc package that can lead to race conditions between asynchronous zspage free and page migration operations.
Vulnerability Detail
The vulnerability arises due to a race condition between asynchronous zspage free and page migration operations in the zsmalloc package. This race condition can occur when a zspage is freed while it is being migrated to another location. If the migration operation accesses the freed zspage, it can lead to memory corruption and potentially enable an attacker to execute arbitrary code or cause a denial of service. The vulnerability was introduced in version v4.14 of the Linux Kernel and has been fixed in version v4.14.282.
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 mentioned for this vulnerability. However, users can mitigate the risk by ensuring they have the latest kernel updates installed and following best practices for system security.
Conclusion
The race condition vulnerability in the zsmalloc package can lead to memory corruption and potential code execution or denial of service. It is crucial to update the Linux Kernel to version v4.14.282 or later to address this issue. 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 storing them in memory.
The vulnerability can lead to memory corruption and potentially enable an attacker to execute arbitrary code or cause a denial of service.
The vulnerability was introduced in version v4.14 of the Linux Kernel.
To fix this vulnerability, update the Linux Kernel to version v4.14.282 or later.
There is no specific workaround mentioned for this vulnerability. However, keeping the kernel up to date and following best security practices can help mitigate the risk.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.