Kernel crash via unlocked extent-buffer folio detach
Published Jun 25, 2024 · Updated Aug 5, 2026
Race condition in Linux 6.8 through 6.9.4 allows local users to crash the kernel via concurrent Btrfs extent-buffer handling. The grab_extent_buffer and release_extent_buffer paths can detach the same folio::private pointer without mapping->i_private_lock, causing two puts and a folio reference-count underflow. Triggering the narrow race requires activity on a middle page of a multi-page extent buffer and can terminate the running kernel.
Summary
What happened
Race condition in Linux 6.8 through 6.9.4 allows local users to crash the kernel via concurrent Btrfs extent-buffer handling. The grab_extent_buffer and release_extent_buffer paths can detach the same folio::private pointer without mapping->i_private_lock, causing two puts and a folio reference-count underflow. Triggering the narrow race requires activity on a middle page of a multi-page extent buffer and can terminate the running kernel.
The record
- CVE
- CVE-2024-38306
- Published
- Jun 25, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-362, CWE-617, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 25, 2024CVE 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=09e6cef19c9fc0e10547135476865b5272aa0406 <952f048eb901881a7cc6f7c1368b53cd386ead7b
- Affected versionversion=09e6cef19c9fc0e10547135476865b5272aa0406 <f3a5367c679d31473d3fbb391675055b4792c309
- Affected versionversion=6.8
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
- Upstream Btrfs race reproducerproof of concept · demonstrated
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