CVE-2024-56759: linux Use After Free
Vulnerability summary
CVE-2024-56759 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 11.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 44 · Related 44Timeline
- 06-01-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix use-after-free when COWing tree bock and tracing is enabled When a COWing a tree block, at btrfs_cow_block(), and we have the tracepoint trace_btrfs_cow_block() enabled and preemption is also enabled (CONFIG_PREEMPT=y), we can trigger a use-after-free in the COWed extent buffer while inside the tracepoint code. This is because in some paths that call btrfs_cow_block(), such as btrfs_search_slot(), we are holding the last reference on the extent buffer @buf so btrfs_force_cow_block() drops the last reference on the @buf extent buffer when it calls free_extent_buffer_stale(buf), which schedules the release of the extent buffer with RCU. This means that if we are on a kernel with preemption, the current task may be preempted before calling trace_btrfs_cow_block() and the extent buffer already released by the time trace_btrfs_cow_block() is called, resulting in a use-after-free. Fix this by moving the trace_btrfs_cow_block() from btrfs_cow_block() to btrfs_force_cow_block() before the COWed extent buffer is freed. This also has a side effect of invoking the tracepoint in the tree defrag code, at defrag.c:btrfs_realloc_node(), since btrfs_force_cow_block() is called there, but this is fine and it was actually missing there.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
0.00 pp
From 0.22% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu135 products
- linuxAll versions (No fix recorded) | < 5.15.0-135.146 | < 6.8.0-60.63
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1080.87 | < 6.8.0-1029.31
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 3083ee2e18b701122a3b841db83448543a87a583, < ba5120a2fb5f23b4d39d302e181aa5d4e28a90d1 | ≥ 3083ee2e18b701122a3b841db83448543a87a583, < 526ff5b27f090fb15040471f892cd2c9899ce314 | ≥ 3083ee2e18b701122a3b841db83448543a87a583, < 66376f1a73cba57fd0af2631d7888605b738e499 | ≥ 3083ee2e18b701122a3b841db83448543a87a583, < 9a466b8693b9add05de99af00c7bdff8259ecf19 | ≥ 3083ee2e18b701122a3b841db83448543a87a583, < c3a403d8ce36f5a809a492581de5ad17843e4701 | ≥ 3083ee2e18b701122a3b841db83448543a87a583, < 44f52bbe96dfdbe4aca3818a2534520082a07040 | 3.4
- linux_kernel< 6.12.8 | 6.13:rc1 | 6.13:rc2 | 6.13:rc3 | 6.13:rc4
Debian1 product
- linux< 6.1.124-1 | < 6.12.8-1
3 vendors · 138 products