
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."