ASoC: mediatek: mt8192: Check runtime resume during probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 125ab5d588b0b3b842064c4d53a666ca74521ae8 · < f6e424835cc05d215c57b6370b2c1e353dd02915| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: mediatek: mt8192: Check runtime resume during probe
The MT8192 AFE probe enables runtime PM temporarily while reinitializing the regmap cache from hardware, but it uses pm_runtime_get_sync() without checking the return value. If runtime resume fails, probe keeps going without the device necessarily being accessible, and pm_runtime_get_sync() may leave the PM usage count incremented.
The regmap_reinit_cache() failure path also returns before dropping the temporary PM reference and before clearing pm_runtime_bypass_reg_ctl.
Use pm_runtime_resume_and_get() so resume failures do not leak a usage count, and clear the temporary bypass flag after dropping the probe PM reference on all regmap_reinit_cache() outcomes.
From the CVE record · Linux
The Linux kernel’s MT8192 AFE probe does not check whether runtime resume succeeds and can continue when the device is inaccessible. A failed cache reinitialization can also leave a temporary power-management reference and bypass flag in place. The input does not describe an attacker, access requirements, or user interaction.
Engineers running Linux kernels with the MT8192 AFE driver should check their systems; affected versions are not specified.