CVE-2024-42257

published 8 Aug 2024 · updated 11 May 2026

ext4: use memtostr_pad() for s_volume_name

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4378be89ddb7de88d984b67ecfd6191686c42817 and Kernel be27cd64461c45a6088a91a04eba5cd44e1767ef.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.10, >=744a56389f7398f286231e062c2e63f0de01bcc6 <4378be89ddb7de88d984b67ecfd6191686c42817, >=744a56389f7398f286231e062c2e63f0de01bcc6 <be27cd64461c45a6088a91a04eba5cd44e1767ef4378be89ddb7de88d984b67ecfd6191686c42817, be27cd64461c45a6088a91a04eba5cd44e1767ef

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42257 severity on Zeptric[![CVE-2024-42257](https://zeptric.io/badge/cve/CVE-2024-42257.svg)](https://zeptric.io/cve/CVE-2024-42257)