mmc: sdhci-esdhc-imx: fix esdhc_change_pinstate() to allow default state restore
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 |
|
|
6.18.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
mmc: sdhci-esdhc-imx: fix esdhc_change_pinstate() to allow default state restore
esdhc_change_pinstate() checks for pins_100mhz and pins_200mhz at the top of the function and returns -EINVAL if either is not defined. This prevents the default case from ever being reached, which means devices with a sleep pinctrl state but without high-speed pin states (100mhz/ 200mhz) can never restore their default pin configuration.
Move the IS_ERR checks for pins_100mhz and pins_200mhz into their respective switch cases.
From the CVE record · Linux
The Linux kernel’s sdhci-esdhc-imx driver can fail to restore the default pin configuration on devices with a sleep pinctrl state but without 100 MHz or 200 MHz pin states. The input describes a functional failure, not an attacker action or any network, authentication, or user-interaction conditions.
Engineers running Linux kernels on devices with this pinctrl configuration should check their kernel; affected versions are not specified.