{"id":"CVE-2024-42257","published":"2024-08-08T08:50:37Z","modified":"2026-05-11T20:28:50Z","title":"ext4: use memtostr_pad() for s_volume_name","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: use memtostr_pad() for s_volume_name\n\nAs with the other strings in struct ext4_super_block, s_volume_name is\nnot NUL terminated. The other strings were marked in commit 072ebb3bffe6\n(\"ext4: add nonstring annotations to ext4.h\"). Using strscpy() isn't\nthe right replacement for strncpy(); it should use memtostr_pad()\ninstead.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00307,"percentile":0.16034,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4378be89ddb7de88d984b67ecfd6191686c42817","tags":[]},{"url":"https://git.kernel.org/stable/c/be27cd64461c45a6088a91a04eba5cd44e1767ef","tags":[]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.21}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 744a56389f7398f286231e062c2e63f0de01bcc6, < 4378be89ddb7de88d984b67ecfd6191686c42817",">= 744a56389f7398f286231e062c2e63f0de01bcc6, < be27cd64461c45a6088a91a04eba5cd44e1767ef"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:12:56.622121Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39480","exploited":false,"provenance":"source"}}