7.8high
ext4: use memtostr_pad() for s_volume_name
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: use memtostr_pad() for s_volume_name As with the other strings in struct ext4_super_block, s_volume_name is not NUL terminated. The other strings were marked in commit 072ebb3bffe6 ("ext4: add nonstring annotations to ext4.h"). Using strscpy() isn't the right replacement for strncpy(); it should use memtostr_pad() instead.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 744a56389f7398f286231e062c2e63f0de01bcc6 before 4378be89ddb7de88d984b67ecfd6191686c42817, from 744a56389f7398f286231e062c2e63f0de01bcc6 before be27cd64461c45a6088a91a04eba5cd44e1767ef, 6.10 Not affected: before 6.10, from 6.10.1 up to 6.10.*, from 6.11 up to * | CVE List |
| linux linux_kernel | from 6.10 before 6.10.1 | 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: ext4: use memtostr_pad() for s_volume_name As with the other strings in struct ext4_super_block, s_volume_name is not NUL terminated. The other strings were marked in commit 072ebb3bffe6 ("ext4: add nonstring annotations to ext4.h"). Using strscpy() isn't the right replacement for strncpy(); it should use memtostr_pad() instead.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ext4: use memtostr_pad() para s_volume_name Al igual que con las otras cadenas en la estructura ext4_super_block, s_volume_name no tiene terminación NUL. Las otras cadenas se marcaron en el commit 072ebb3bffe6 ("ext4: agregue anotaciones que no sean cadenas a ext4.h"). Usar strscpy() no es el reemplazo adecuado para strncpy(); debería usar memtostr_pad() en su lugar.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42257 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-42257 changed 2026-06-17 | Public domain |