CVE-2024-26791
btrfs: dev-replace: properly validate device names
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).
INFO
Published Date :
April 4, 2024, 9:15 a.m.
Last Modified :
Dec. 20, 2024, 2:35 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the affected kernel packages.
- Reboot the system if required.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-26791.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-26791 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-26791
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-26791 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-26791 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 20, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H Added CWE NIST CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 4.19.309 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.271 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.212 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.151 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.81 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.7.9 *cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.8:rc6:*:*:*:*:*:* Changed Reference Type https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 No Types Assigned https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 Patch Changed Reference Type https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 No Types Assigned https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 Patch Changed Reference Type https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d No Types Assigned https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d Patch Changed Reference Type https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d No Types Assigned https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d Patch Changed Reference Type https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb No Types Assigned https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb Patch Changed Reference Type https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb No Types Assigned https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb Patch Changed Reference Type https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 No Types Assigned https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 Patch Changed Reference Type https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 No Types Assigned https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 Patch Changed Reference Type https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9 No Types Assigned https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9 Patch Changed Reference Type https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9 No Types Assigned https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9 Patch Changed Reference Type https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1 No Types Assigned https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1 Patch Changed Reference Type https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1 No Types Assigned https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1 Patch Changed Reference Type https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311 No Types Assigned https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311 Patch Changed Reference Type https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311 No Types Assigned https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311 Patch Changed Reference Type https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8 No Types Assigned https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8 Patch Changed Reference Type https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8 No Types Assigned https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8 Patch Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Patch Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 Added Reference https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d Added Reference https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb Added Reference https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 Added Reference https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9 Added Reference https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1 Added Reference https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311 Added Reference https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8 Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 05, 2024
Action Type Old Value New Value Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 27, 2024
Action Type Old Value New Value Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 25, 2024
Action Type Old Value New Value Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 14, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 04, 2024
Action Type Old Value New Value Added 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). Added Reference kernel.org https://git.kernel.org/stable/c/11d7a2e429c02d51e2dc90713823ea8b8d3d3a84 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/c6652e20d7d783d060fe5f987eac7b5cabe31311 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/2886fe308a83968dde252302884a1e63351cf16d [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ab2d68655d0f04650bef09fee948ff80597c5fb9 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f590040ce2b712177306b03c2a63b16f7d48d3c8 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/b1690ced4d2d8b28868811fb81cd33eee5aefee1 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/343eecb4ff49a7b1cc1dfe86958a805cf2341cfb [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 [No types assigned]