# CVE-2024-42242: mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-08-07T15:14:29.122Z
- Modified: 2026-06-17T07:49:05.360Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 616f8766179277324393f7b77e07f14cb3503825 before bf78b1accef46efd9b624967cb74ae8d3c215a2b; from 616f8766179277324393f7b77e07f14cb3503825 before 63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aef; 6.9 (not affected: before 6.9; from 6.9.10 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.9 before 6.9.10

## References

- <https://git.kernel.org/stable/c/bf78b1accef46efd9b624967cb74ae8d3c215a2b> (patch)
- <https://git.kernel.org/stable/c/63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aef> (patch)

## Sources

- CVE List: [CVE-2024-42242](https://www.cve.org/CVERecord?id=CVE-2024-42242), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42242](https://nvd.nist.gov/vuln/detail/CVE-2024-42242), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42242 · Whole record: https://cve.day/CVE-2024-42242.json · Rebuilt by cve.day 2026-11-25T22:58:44.108Z
