mtk-sd: Prevent memory corruption from DMA map failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 208489032bdd8d4a7de50f3057c175058f271956 · < 3419bc6a7b65cbbb91417bb9970208478e034c79| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtk-sd: Prevent memory corruption from DMA map failure
If msdc_prepare_data() fails to map the DMA region, the request is not prepared for data receiving, but msdc_start_data() proceeds the DMA with previous setting. Since this will lead a memory corruption, we have to stop the request operation soon after the msdc_prepare_data() fails to prepare it.
From the CVE record · Linux
The Linux kernel's mtk-sd driver can start a DMA transfer using previous settings if mapping the DMA region fails. This can cause memory corruption. The input does not specify how an attacker could trigger the failure or whether authentication or user interaction is required.
Engineers running Linux kernels with the mtk-sd driver should check their systems; affected versions are not specified.