mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's sdhci driver can set the maximum segment size below PAGE_SIZE in some circumstances, including with a 64 KiB PAGE_SIZE, causing block queue limit validation to fail. The input does not describe an attacker action or specify network access, authentication, or user interaction requirements.
Engineers running Linux kernels with the sdhci driver should check their kernel versions against the vendor advisory; affected versions were not provided.