Kernel crash via dirty metadata writeback
Published Dec 8, 2025 · Updated Aug 5, 2026
Use-after-free in the Linux btrfs filesystem allows local users to crash the kernel during unmount of RAID56 metadata volumes. After an error freezes transactions, close_ctree() calls iput() on the btree inode, writing dirty metadata through an rmw_workers queue that has already been stopped and freed. Reachability requires local write access, an error-state btrfs volume with pending dirty metadata, RAID5 or RAID6 metadata, and subsequent unmount; the writeback can also corrupt filesystem metadata.
Summary
What happened
Use-after-free in the Linux btrfs filesystem allows local users to crash the kernel during unmount of RAID56 metadata volumes. After an error freezes transactions, close_ctree() calls iput() on the btree inode, writing dirty metadata through an rmw_workers queue that has already been stopped and freed. Reachability requires local write access, an error-state btrfs volume with pending dirty metadata, RAID5 or RAID6 metadata, and subsequent unmount; the writeback can also corrupt filesystem metadata.
The record
- CVE
- CVE-2025-40303
- Published
- Dec 8, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 8, 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=13e6c37b989859e70b0d73d3f2cb0aa022159b17 <066ee13f05fbd82ada01883e51f0695172f98dff
- Affected versionversion=13e6c37b989859e70b0d73d3f2cb0aa022159b17 <2618849f31e7cf51fadd4a5242458501a6d5b315
- Affected versionversion=13e6c37b989859e70b0d73d3f2cb0aa022159b17 <54a5b5a15588e3b0b294df31474d08a2678d4291
- Affected versionversion=13e6c37b989859e70b0d73d3f2cb0aa022159b17 <e2b3859067bf012d53c49b3f885fef40624a2c83
- Affected versionversion=3.10
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