CVE-2024-42257

Source
https://cve.org/CVERecord?id=CVE-2024-42257
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42257.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42257
Downstream
Published
2024-08-08T08:50:37.231Z
Modified
2026-03-11T05:19:12.700765Z
Summary
ext4: use memtostr_pad() for s_volume_name
Details

In the Linux kernel, the following vulnerability has been resolved:

ext4: use memtostrpad() for svolume_name

As with the other strings in struct ext4superblock, svolumename 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42257.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
744a56389f7398f286231e062c2e63f0de01bcc6
Fixed
4378be89ddb7de88d984b67ecfd6191686c42817
Fixed
be27cd64461c45a6088a91a04eba5cd44e1767ef

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42257.json"