Local service interruption via btrfs refcount race
Published Apr 16, 2025 · Updated Aug 5, 2026
Race condition in the Linux kernel btrfs block-group code allows local users to interrupt service through filesystem writes. btrfs_create_pending_block_groups() removes and clears a new block group without holding unused_bg_lock while btrfs_mark_bg_unused() can concurrently move it, leaving a broken reference count and invalid new_bgs cleanup state. Write access to a mounted btrfs filesystem is sufficient; a triggered underflow produces a use-after-free warning and can disrupt the host.
Summary
What happened
Race condition in the Linux kernel btrfs block-group code allows local users to interrupt service through filesystem writes. btrfs_create_pending_block_groups() removes and clears a new block group without holding unused_bg_lock while btrfs_mark_bg_unused() can concurrently move it, leaving a broken reference count and invalid new_bgs cleanup state. Write access to a mounted btrfs filesystem is sufficient; a triggered underflow produces a use-after-free warning and can disrupt the host.
The record
- CVE
- CVE-2025-22115
- Published
- Apr 16, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-362, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 16, 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=0657b20c5a76c938612f8409735a8830d257866e <2d8e5168d48a91e7a802d3003e72afb4304bebfa
- Affected versionversion=0657b20c5a76c938612f8409735a8830d257866e <9d383a6fc59271aaaf07a33b23b2eac5b9268b7a
- Affected versionversion=0657b20c5a76c938612f8409735a8830d257866e <ee56da95f8962b86fec4ef93f866e64c8d025a58
- Affected versionversion=6.1.47 <6.2
- Affected versionversion=6297644db23f77c02ae7961cc542d162629ae2c4
- Affected versionversion=6.4.12 <6.5
- Affected versionversion=6.5
- Affected versionversion=7569c4294ba6ff9f194635b14876198f8a687c4a
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