Kernel crash via encoded-read completion race
Published Dec 27, 2024 · Updated May 11, 2026
Use-after-free in Linux kernel Btrfs 5.18 through 6.12.3 allows local users to crash the kernel through an encoded-read race. The btrfs_encoded_read_endio() callback uses atomic_dec_return() to decrement and test a pending-I/O counter in separate x86 instructions, allowing one completion to free the encoded-read context while another wakes its freed wait queue. Reaching the faulty encoded-I/O path requires CAP_SYS_ADMIN and a Btrfs workload with concurrent encoded reads; successful triggering produces a kernel fault and service interruption.
Summary
What happened
Use-after-free in Linux kernel Btrfs 5.18 through 6.12.3 allows local users to crash the kernel through an encoded-read race. The btrfs_encoded_read_endio() callback uses atomic_dec_return() to decrement and test a pending-I/O counter in separate x86 instructions, allowing one completion to free the encoded-read context while another wakes its freed wait queue. Reaching the faulty encoded-I/O path requires CAP_SYS_ADMIN and a Btrfs workload with concurrent encoded reads; successful triggering produces a kernel fault and service interruption.
The record
- CVE
- CVE-2024-56582
- Published
- Dec 27, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1499.004
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Dec 27, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 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=1881fba89bd5dcd364d2e1bf561912a90a11c21a <05b36b04d74a517d6675bf2f90829ff1ac7e28dc
- Affected versionversion=1881fba89bd5dcd364d2e1bf561912a90a11c21a <6228f13f1996a4feb9b601d6644bf0bfe03671dd
- Affected versionversion=1881fba89bd5dcd364d2e1bf561912a90a11c21a <a40de0330af4fb7bc6b354250c24f294f8b826a0
- Affected versionversion=1881fba89bd5dcd364d2e1bf561912a90a11c21a <f8a5129e4a9fc3f6aa3f137513253b51b31b94d4
- Affected versionversion=5.18
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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.
Weakness, pattern, technique
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