Critical UAF Vulnerability in Linux Kernel Affecting Debian Packages

linux Updated 02 Oct 2025

Summary

10/02/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-21693: In the Linux kernel, the following vulnerability has been resolved: mm: zswap: properly synchronize freeing resources during CPU hotunplug In zswap_compress() and zswap_decompress(), the per-CPU acomp_ctx of the current... Affects linux versions < 6.12.12-1. Fixed in 6.12.12-1. 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 Linux kernel is the core component of the Debian operating system, responsible for managing hardware resources and providing essential services to applications. It is known for its stability, performance, and security. However, vulnerabilities can arise, impacting system integrity and security. This specific vulnerability affects the Linux kernel in Debian versions 13 and 14, highlighting the importance of timely updates and patches to maintain system security.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the zswap feature, which improperly synchronizes resource freeing during CPU hotunplug. The issue arises in the zswap_compress() and zswap_decompress() functions, where the per-CPU acomp_ctx is used without ensuring that the operation remains on the same CPU. If the original CPU is hotunplugged while the acomp_ctx is still in use, it can lead to a use-after-free (UAF) bug, resulting in potential system instability or crashes. This vulnerability was introduced in commit 1ec3b5fe6eec when the kernel switched to using the crypto_acomp API for hardware acceleration, which does not disable preemption or migration, thus allowing the operation to continue on a different CPU.

How To Fix

Minimum fixed version

6.12.12-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating to the fixed version of the Linux kernel.

Conclusion

The identified vulnerability in the Linux kernel affects Debian versions 13 and 14, posing a significant risk due to improper synchronization during CPU hotunplug. Users are strongly advised to update their kernel to the patched version 6.12.12-1 to mitigate this risk. Regular updates and monitoring for vulnerabilities are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a memory resource after it has been freed, potentially leading to crashes or arbitrary code execution.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json to Vulert's playground, you can check for vulnerabilities without any signup.

If exploited, this vulnerability could lead to system instability, crashes, or unauthorized access to system resources, compromising the overall security of the system.

It is not recommended to continue using the affected versions, as they pose a security risk. Users should update to the patched version as soon as possible.

Detailed information can be found in the official Debian security advisories and the Linux kernel mailing lists, which discuss the vulnerability and its implications.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.12-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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