CVE-2025-21693
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21693 affects the Linux kernel's zswap compression functionality. The vulnerability was discovered in February 2025 and involves improper synchronization of resource freeing during CPU hotunplug operations. The issue specifically affects the zswap compression/decompression operations when using the crypto_acomp API for hardware acceleration (NVD, Kernel Commit).

Technical details

The vulnerability stems from a race condition in zswap_compress() and zswap_decompress() functions where the per-CPU acomp_ctx is retrieved and used without proper preemption or migration controls. If the original CPU is hotunplugged while the acomp_ctx is still in use, it leads to a Use-After-Free (UAF) bug as resources attached to the acomp_ctx are freed during hotunplug in zswap_cpu_comp_dead(). The issue was introduced when switching to the crypto_acomp API for hardware acceleration. The CVSS v3.1 base score is 7.8 (High) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to a Use-After-Free condition when CPU hotunplug operations occur during zswap compression/decompression operations. This could potentially result in system crashes, memory corruption, or privilege escalation in the Linux kernel (NVD).

Exploitability

The vulnerability requires local access and low privileges to exploit. It specifically occurs during CPU hotunplug operations while zswap compression/decompression is active. The attack vector is local, requiring the attacker to have the ability to trigger CPU hotplug operations (NVD).

Mitigation and workarounds

The issue has been fixed by implementing proper synchronization using acomp_ctx.mutex to coordinate CPU hotplug callbacks and compression/decompression paths. The fix ensures that acomp_ctx.req is NULL when resources are freed and adds retry mechanisms when a CPU is offlined. The patch has been merged into the Linux kernel mainline (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68422NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68399NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68398NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68376NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68374NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management