Kernel compromise via uninitialized btrfs pointer free
Published Oct 29, 2024 · Updated Aug 5, 2026
Memory corruption in affected Linux kernels allows local users to compromise the kernel by mounting a crafted btrfs volume. During mount-time log replay, read_alloc_one_name() leaves fscrypt_str.name uninitialized when kmalloc fails, and cleanup passes the stale value to kfree(). Exploitation requires an attacker-controlled btrfs image and induced allocation failure; the invalid free can disclose or corrupt kernel memory or panic the host.
Summary
What happened
Memory corruption in affected Linux kernels allows local users to compromise the kernel by mounting a crafted btrfs volume. During mount-time log replay, read_alloc_one_name() leaves fscrypt_str.name uninitialized when kmalloc fails, and cleanup passes the stale value to kfree(). Exploitation requires an attacker-controlled btrfs image and induced allocation failure; the invalid free can disclose or corrupt kernel memory or panic the host.
The record
- CVE
- CVE-2024-50087
- Published
- Oct 29, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-824, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 29, 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=1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e <b37de9491f140a0ff125c27dd1050185c3accbc1
- Affected versionversion=6.1.57 <6.1.114
- Affected versionversion=6.2
- Affected versionversion=e43eec81c5167b655b72c781b0e75e62a05e415e <1ec28de5e476913ae51f909660b4447eddb28838
- Affected versionversion=e43eec81c5167b655b72c781b0e75e62a05e415e <2ab5e243c2266c841e0f6904fad1514b18eaf510
- Affected versionversion=e43eec81c5167b655b72c781b0e75e62a05e415e <7fc7c47b9ba0cf2d192f2117a64b24881b0b577f
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