Kernel task hangs via zswap lock inversion
Published Apr 16, 2025 · Updated May 23, 2026
Improper locking in Linux 6.12.12 through 6.12.22 and 6.13 allows local users to hang kernel tasks during CPU hot-unplug. zswap_cpu_comp_dead() calls crypto_free_acomp() while holding acomp_ctx, reversing the scomp_lock-to-acomp_ctx order used during allocation and reclaim. Reachability requires concurrent zswap memory reclaim and CPU offlining; the resulting ABBA deadlock blocks kernel work and affects availability only.
Summary
What happened
Improper locking in Linux 6.12.12 through 6.12.22 and 6.13 allows local users to hang kernel tasks during CPU hot-unplug. zswap_cpu_comp_dead() calls crypto_free_acomp() while holding acomp_ctx, reversing the scomp_lock-to-acomp_ctx order used during allocation and reclaim. Reachability requires concurrent zswap memory reclaim and CPU offlining; the resulting ABBA deadlock blocks kernel work and affects availability only.
The record
- CVE
- CVE-2025-22030
- Published
- Apr 16, 2025
- Updated
- May 23, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-833, CWE-667, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 16, 2025CVE publishedPublication date reported by the CVE source.
- May 23, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=12dcb0ef540629a281533f9dedc1b6b8e14cfb65 <717d9c35deff6c33235693171bacbb03e9643fa4
- Affected versionversion=12dcb0ef540629a281533f9dedc1b6b8e14cfb65 <a8d18000e9d2d97aaf105f5f9b3b0e8a6fbf8b96
- Affected versionversion=12dcb0ef540629a281533f9dedc1b6b8e14cfb65 <c11bcbc0a517acf69282c8225059b2a8ac5fe628
- Affected versionversion=6.12.12 <6.12.23
- Affected versionversion=6.13
- Affected versionversion=8d29ff5d50304daa41dc3cfdda4a9d1e46cf5be1 <747e3eec1d7d124ea90ed3d7b85369df8b4e36d2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo