Kernel memory corruption via stale bdev_file reuse
Published Nov 9, 2024 · Updated Aug 5, 2026
Use-after-free in Linux kernel btrfs 4.8 through 6.11.6 allows local users to corrupt kernel memory through crafted filesystem images. After one mount fails, btrfs_close_one_device() frees device->bdev_file without clearing it, and __btrfs_free_extra_devids() later passes the stale pointer to fput(). Reaching the flaw requires two btrfs images with one FSID and different device UUIDs, device scanning, and a specific two-mount sequence that makes the first open fail.
Summary
What happened
Use-after-free in Linux kernel btrfs 4.8 through 6.11.6 allows local users to corrupt kernel memory through crafted filesystem images. After one mount fails, btrfs_close_one_device() frees device->bdev_file without clearing it, and __btrfs_free_extra_devids() later passes the stale pointer to fput(). Reaching the flaw requires two btrfs images with one FSID and different device UUIDs, device scanning, and a specific two-mount sequence that makes the first open fail.
The record
- CVE
- CVE-2024-50217
- Published
- Nov 9, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Nov 9, 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=142388194191a3edc9ba01cfcfd8b691e0971fb2 <47a83f8df39545f3f552bb6a1b6d9c30e37621dd
- Affected versionversion=142388194191a3edc9ba01cfcfd8b691e0971fb2 <aec8e6bf839101784f3ef037dcdb9432c3f32343
- Affected versionversion=4.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.
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