CVE-2024-42257
publishedext4: use memtostr_pad() for s_volume_name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux744a56389f7398f286231e062c2e63f0de01bcc6 to < 4378be89ddb7de88d984b67ecfd6191686c42817 · 744a56389f7398f286231e062c2e63f0de01bcc6 to < be27cd64461c45a6088a91a04eba5cd44e1767ef · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.10.1 through 6.10.* (unaffected · semver) · 6.11 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 744a56389f7398f286231e062c2e63f0de01bcc6 to < 4378be89ddb7de88d984b67ecfd6191686c42817 (affected · git)744a56389f7398f286231e062c2e63f0de01bcc6 to < be27cd64461c45a6088a91a04eba5cd44e1767ef (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.10 (affected)0 to < 6.10 (unaffected · semver)6.10.1 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
2Linux · cna
ext4: use memtostr_pad() for s_volume_name
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 10516145a2a187f24abd6c430cfd0bf2d04b0d797a5c14ba75dde575611a75b2
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record