PT-2025-6066 · Linux+9 · Linux Kernel+9

Johannes Weiner

+1

·

Published

2025-01-08

·

Updated

2026-05-26

·

CVE-2025-21693

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A use-after-free bug was introduced in the Linux kernel when the switch to the crypto acomp API was made for hardware acceleration in zswap. The issue occurs because the per-CPU acomp ctx is retrieved and used throughout the operation in zswap compress() and zswap decompress(), but neither preemption nor migration is disabled, allowing the operation to continue on a different CPU. If the original CPU is hotunplugged while the acomp ctx is still in use, resources attached to it are freed, causing the bug. The problem was resolved by using acomp ctx.mutex to synchronize CPU hotplug callbacks with compression/decompression paths.
Recommendations To resolve the issue, ensure that the Linux kernel is updated to a version that includes the fix for the use-after-free bug in zswap. As a temporary workaround, consider disabling the zswap compress() and zswap decompress() functions until a patch is available. Restrict access to the vulnerable acomp ctx to minimize the risk of exploitation. Avoid using the acomp ctx.req variable in the affected compression/decompression paths until the issue is resolved. Apply the synchronization mechanism using acomp ctx.mutex to prevent the use-after-free bug. Update the Linux kernel to the latest version that includes the fix for the zswap use-after-free vulnerability.

Exploit

Fix

DoS

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025:20095
ALSA-2025:20518
ALT-PU-2025-12647
AZL-58989
AZL-59094
BDU:2025-01801
CVE-2025-21693
ECHO-31D4-A5A1-0A1E
INFSA-2025_20518
OPENSUSE-SU-2025_1177-1
OPENSUSE-SU-2025_1178-1
OPENSUSE-SU-2025_1180-1
OPENSUSE-SU-2025_1195-1
RHSA-2025:20095
RHSA-2025:20518
RHSA-2025_20518
SUSE-SU-2025:01919-1
SUSE-SU-2025:01967-1
SUSE-SU-2025:1176-1
SUSE-SU-2025:1177-1
SUSE-SU-2025:1178-1
SUSE-SU-2025:1180-1
SUSE-SU-2025:1183-1
SUSE-SU-2025:1195-1
SUSE-SU-2025:1241-1
SUSE-SU-2025:20190-1
SUSE-SU-2025:20192-1
SUSE-SU-2025:20260-1
SUSE-SU-2025:20270-1
SUSE-SU-2025_01967-1
SUSE-SU-2025_1177-1
SUSE-SU-2025_1178-1
SUSE-SU-2025_1180-1
SUSE-SU-2025_1195-1
SUSE-SU-2025_1241-1
USN-7445-1
USN-7448-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Hat
Rocky Linux
Suse
Ubuntu