{"id":"CVE-2024-42257","aliases":["CVE-2024-42257"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: use memtostr_pad() for s_volume_name","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-08-08T08:50:37.231Z","modified":"2026-06-17T07:49:07.157Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"744a56389f7398f286231e062c2e63f0de01bcc6","fixed":"4378be89ddb7de88d984b67ecfd6191686c42817","status":"affected"},{"type":"git","introduced":"744a56389f7398f286231e062c2e63f0de01bcc6","fixed":"be27cd64461c45a6088a91a04eba5cd44e1767ef","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.10.1","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10","fixed":"6.10.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4378be89ddb7de88d984b67ecfd6191686c42817","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be27cd64461c45a6088a91a04eba5cd44e1767ef","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:12:56.622Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42257","url":"https://www.cve.org/CVERecord?id=CVE-2024-42257","licence":"CVE Terms of Use","modified":"2026-05-11T20:28:50.748Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42257","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42257","licence":"Public domain","modified":"2026-06-17T07:49:07.157Z"}],"updatedAt":"2026-11-25T22:58:44.138Z","epss":{"score":0.00202,"percentile":0.10651,"date":"2026-12-01T12:00:22.000Z"}}