CVE-2024-26791 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: dev-replace: properly validate device names There's a syzbot report that device name buffers passed to device replace are not properly checked for string termination which could lead to a read out of bounds in getname_kernel(). Add a helper that validates both source and target device name buffers. For devid as the source initialize the buffer to empty string in case something tries to read it later. This was originally analyzed and fixed in a different way by Edward Adam Davis (see links).
A vulnerability in the Linux kernel's Btrfs file system component has been addressed. The issue arose because device name buffers used in the 'dev-replace' operation were not properly validated for string termination. This oversight could lead to an out-of-bounds read in the 'getname_kernel()' function. The vulnerability has been fixed by introducing a helper function that validates both source and target device name buffers. Additionally, for the source device ID, the buffer is now initialized to an empty string to prevent unintended reads. This vulnerability affects several versions of the Linux kernel, specifically versions 4.19 and later.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. For Debian users, the updated package is available in the Debian LTS repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 4.19.309 >= 4.20, < 5.4.271 >= 5.5, < 5.10.212 >= 5.11, < 5.15.151 >= 5.16, < 6.1.81 >= 6.2, < 6.6.21 >= 6.7, < 6.7.9 6.8 rc1 6.8 rc2 6.8 rc3 6.8 rc4 6.8 rc5 6.8 rc6 |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 20, 2024 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Nov 5, 2024 | CVE Modified | kernel.org |
| Jun 27, 2024 | CVE Modified | kernel.org |
| Jun 25, 2024 | CVE Modified | kernel.org |
| May 29, 2024 | CVE Modified | kernel.org |
| May 14, 2024 | CVE Modified | kernel.org |
| Apr 4, 2024 | New CVE Received | kernel.org |