Race Condition in zsmalloc Package

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback