Kernel memory compromise via stale btrfs pointer
Published Jun 18, 2025 · Updated May 11, 2026
Use-after-free in the btrfs subsystem of Linux kernel 5.13 allows local users to compromise kernel memory after a failed commit. prepare_to_relocate() leaves fs_info->reloc_ctl pointing to freed relocation control data when btrfs_commit_transaction() fails, and btrfs_init_reloc_root() later dereferences it. Triggering requires a btrfs balance before defragmentation plus a transaction failure; successful exploitation can disclose or alter data or crash the host.
Summary
What happened
Use-after-free in the btrfs subsystem of Linux kernel 5.13 allows local users to compromise kernel memory after a failed commit. prepare_to_relocate() leaves fs_info->reloc_ctl pointing to freed relocation control data when btrfs_commit_transaction() fails, and btrfs_init_reloc_root() later dereferences it. Triggering requires a btrfs balance before defragmentation plus a transaction failure; successful exploitation can disclose or alter data or crash the host.
The record
- CVE
- CVE-2022-50067
- Published
- Jun 18, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 18, 2025CVE publishedPublication date reported by the CVE source.
- May 11, 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=1a5353475df8fcaf200fecc9e961a3900d15e891 <ff0e8ed8dfb584575cffc1561f17a1d094e8565b
- Affected versionversion=4223d91ca1b5bf3928e5722c3c6b3fdb49250ab3 <8e546674031fc1576da501e27a8fd165222e5a37
- Affected versionversion=499d29bf151951399367ba83645abfdb429a3af9 <dcb11fe0a0a9cca2b7425191b9bf30dc29f2ad0f
- Affected versionversion=5.13
- Affected versionversion=6f371623f315c26100e603c2e8837cdbe130f9e0 <b60e862e133f646f19023ece1d476d630a660de1
- Affected versionversion=fb686c6824dd6294ca772b92424b8fba666e7d00 <5d741afed0bac206640cc64d77b97853283cf719
- Affected versionversion=fb686c6824dd6294ca772b92424b8fba666e7d00 <78f8c2370e3d33e35f23bdc648653d779aeacb6e
- Affected versionversion=fb686c6824dd6294ca772b92424b8fba666e7d00 <85f02d6c856b9f3a0acf5219de6e32f58b9778eb
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