ASoC: rockchip: rockchip_pdm: Handle runtime PM resume failures in set_fmt
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c85064435fe7a216ec0f0238ef2b8f7cd850a450 · < b2b5c2ca5a4924271fa86d75a252de32fa285375| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: rockchip: rockchip_pdm: Handle runtime PM resume failures in set_fmt
rockchip_pdm_set_fmt() calls pm_runtime_get_sync() before accessing hardware registers, but ignores its return value. If the runtime resume fails, the function continues to perform register accesses while the device state is undefined. Replace pm_runtime_get_sync() with pm_runtime_resume_and_get() and return early on failure to avoid unpowered register accesses.
From the CVE record · Linux
The rockchip PDM driver does not check whether runtime power management resumes successfully before accessing hardware registers. If resume fails, it can access registers while the device state is undefined; the input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the rockchip PDM driver should check their kernel version; affected versions are not specified.