Kernel-memory disclosure and crash via unterminated device names
Published Apr 4, 2024 · Updated May 11, 2026
Out-of-bounds read in Btrfs device replacement in affected Linux kernels allows local users to read kernel memory or crash the system. fs/btrfs/dev-replace.c passes user-controlled source and target device-name buffers to getname_kernel() without first verifying NUL termination, causing a read beyond the buffer. Reaching the flaw requires local access and permission to issue the Btrfs device-replacement ioctl against a mounted Btrfs filesystem.
Summary
What happened
Out-of-bounds read in Btrfs device replacement in affected Linux kernels allows local users to read kernel memory or crash the system. fs/btrfs/dev-replace.c passes user-controlled source and target device-name buffers to getname_kernel() without first verifying NUL termination, causing a read beyond the buffer. Reaching the flaw requires local access and permission to issue the Btrfs device-replacement ioctl against a mounted Btrfs filesystem.
The record
- CVE
- CVE-2024-26791
- Published
- Apr 4, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 4, 2024CVE 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=3.8
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <11d7a2e429c02d51e2dc90713823ea8b8d3d3a84
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <2886fe308a83968dde252302884a1e63351cf16d
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <343eecb4ff49a7b1cc1dfe86958a805cf2341cfb
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <9845664b9ee47ce7ee7ea93caf47d39a9d4552c4
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <ab2d68655d0f04650bef09fee948ff80597c5fb9
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <b1690ced4d2d8b28868811fb81cd33eee5aefee1
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <c6652e20d7d783d060fe5f987eac7b5cabe31311
- Affected versionversion=e93c89c1aaaaaec3487c4c18dd02360371790722 <f590040ce2b712177306b03c2a63b16f7d48d3c8
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
- syzbot Btrfs getname_kernel reproducerproof of concept · demonstrated
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