CVE-2024-42242

mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE

State
Published
Severity
Not scored
Published
Aug 7, 2024
Updated
May 11, 2026
Reserved
Jul 30, 2024

Read the record on cve.org

Description

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

mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE

blk_queue_max_segment_size() ensured:

if (max_size < PAGE_SIZE) max_size = PAGE_SIZE;

whereas:

blk_validate_limits() makes it an error:

if (WARN_ON_ONCE(lim->max_segment_size < PAGE_SIZE)) return -EINVAL;

The change from one to the other, exposed sdhci which was setting maximum segment size too low in some circumstances.

Fix the maximum segment size when it is too low.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 616f8766179277324393f7b77e07f14cb3503825 to before bf78b1accef46efd9b624967cb74ae8d3c215a2bAffected
  • 616f8766179277324393f7b77e07f14cb3503825 to before 63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aefAffected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.9.10 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.