# CVE-2024-42257: ext4: use memtostr_pad() for s_volume_name

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-08-08T08:50:37.231Z
- Modified: 2026-06-17T07:49:07.157Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.10 before 6.10.1

## References

- <https://git.kernel.org/stable/c/4378be89ddb7de88d984b67ecfd6191686c42817> (patch)
- <https://git.kernel.org/stable/c/be27cd64461c45a6088a91a04eba5cd44e1767ef> (patch)

## Sources

- CVE List: [CVE-2024-42257](https://www.cve.org/CVERecord?id=CVE-2024-42257), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42257](https://nvd.nist.gov/vuln/detail/CVE-2024-42257), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42257 · Whole record: https://cve.day/CVE-2024-42257.json · Rebuilt by cve.day 2026-11-25T22:58:44.138Z
