Kernel memory corruption via stale Btrfs extent buffer
Published Jan 6, 2025 · Updated Aug 5, 2026
Use-after-free in the Btrfs copy-on-write path in Linux allows local users to disclose or corrupt kernel memory through filesystem writes. When btrfs_force_cow_block drops the last extent-buffer reference, preemption can release the buffer before trace_btrfs_cow_block dereferences it. Reachability requires CONFIG_PREEMPT, the Btrfs COW tracepoint to be enabled, and attacker-writable storage on Btrfs; the stale dereference can leak memory or crash the kernel.
Summary
What happened
Use-after-free in the Btrfs copy-on-write path in Linux allows local users to disclose or corrupt kernel memory through filesystem writes. When btrfs_force_cow_block drops the last extent-buffer reference, preemption can release the buffer before trace_btrfs_cow_block dereferences it. Reachability requires CONFIG_PREEMPT, the Btrfs COW tracepoint to be enabled, and attacker-writable storage on Btrfs; the stale dereference can leak memory or crash the kernel.
The record
- CVE
- CVE-2024-56759
- Published
- Jan 6, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 6, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 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=3083ee2e18b701122a3b841db83448543a87a583 <44f52bbe96dfdbe4aca3818a2534520082a07040
- Affected versionversion=3083ee2e18b701122a3b841db83448543a87a583 <526ff5b27f090fb15040471f892cd2c9899ce314
- Affected versionversion=3083ee2e18b701122a3b841db83448543a87a583 <66376f1a73cba57fd0af2631d7888605b738e499
- Affected versionversion=3083ee2e18b701122a3b841db83448543a87a583 <9a466b8693b9add05de99af00c7bdff8259ecf19
- Affected versionversion=3083ee2e18b701122a3b841db83448543a87a583 <ba5120a2fb5f23b4d39d302e181aa5d4e28a90d1
- Affected versionversion=3083ee2e18b701122a3b841db83448543a87a583 <c3a403d8ce36f5a809a492581de5ad17843e4701
- Affected versionversion=3.4
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.
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