7.1high
btrfs: dev-replace: properly validate device names
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from e93c89c1aaaaaec3487c4c18dd02360371790722 before 11d7a2e429c02d51e2dc90713823ea8b8d3d3a84, from e93c89c1aaaaaec3487c4c18dd02360371790722 before c6652e20d7d783d060fe5f987eac7b5cabe31311, from e93c89c1aaaaaec3487c4c18dd02360371790722 before 2886fe308a83968dde252302884a1e63351cf16d, from e93c89c1aaaaaec3487c4c18dd02360371790722 before ab2d68655d0f04650bef09fee948ff80597c5fb9, from e93c89c1aaaaaec3487c4c18dd02360371790722 before f590040ce2b712177306b03c2a63b16f7d48d3c8, from e93c89c1aaaaaec3487c4c18dd02360371790722 before b1690ced4d2d8b28868811fb81cd33eee5aefee1, from e93c89c1aaaaaec3487c4c18dd02360371790722 before 343eecb4ff49a7b1cc1dfe86958a805cf2341cfb, from e93c89c1aaaaaec3487c4c18dd02360371790722 before 9845664b9ee47ce7ee7ea93caf47d39a9d4552c4 and 1 more Not affected: before 3.8, from 4.19.309 up to 4.19.*, from 5.4.271 up to 5.4.*, from 5.10.212 up to 5.10.*, from 5.15.151 up to 5.15.*, from 6.1.81 up to 6.1.* | CVE List |
| linux linux_kernel | before 4.19.309, from 4.20 before 5.4.271, from 5.5 before 5.10.212, from 5.11 before 5.15.151, from 5.16 before 6.1.81, from 6.2 before 6.6.21, from 6.7 before 6.7.9, 6.8 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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).
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: btrfs: dev-replace: validar correctamente los nombres de los dispositivos. Hay un informe de syzbot que indica que los búferes de nombres de dispositivos pasados para reemplazar el dispositivo no se verifican adecuadamente para determinar la terminación de la cadena, lo que podría provocar una lectura fuera de los límites. en getname_kernel(). Agregue un asistente que valide los búferes de nombres de dispositivos de origen y de destino. Para devid como fuente, inicialice el búfer en una cadena vacía en caso de que algo intente leerlo más tarde. Esto fue originalmente analizado y solucionado de una manera diferente por Edward Adam Davis (ver enlaces).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26791 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-26791 changed 2026-06-17 | Public domain |