ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1094d83ad325829acd68e63147793536060a0d60, Kernel b8948ac26efc395264a47f9a743889065adb5cff, Kernel f87707bc0406fe92bc142a9eee5f480c94ce9ff8 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8365-afe-pcm: fix possible NULL-pointer dereferences in mt8365_afe_suspend() mt8365_afe_suspend() allocates the register backup buffer with devm_kcalloc(), but does not check for allocation failure before using the returned pointer. This may lead to a NULL pointer dereference when accessing afe->reg_back_up[i]. Add the missing NULL check and return -ENOMEM on allocation failure after disabling the main clock. Also propagate the return value of mt8365_afe_suspend() in mt8365_afe_dev_runtime_suspend() so that the suspended state is not updated when suspend fails.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.12, >=e1991d102bc2abb32331c462f8f3e77059c69578 <1094d83ad325829acd68e63147793536060a0d60, >=e1991d102bc2abb32331c462f8f3e77059c69578 <b8948ac26efc395264a47f9a743889065adb5cff, >=e1991d102bc2abb32331c462f8f3e77059c69578 <f87707bc0406fe92bc142a9eee5f480c94ce9ff8 | 1094d83ad325829acd68e63147793536060a0d60, b8948ac26efc395264a47f9a743889065adb5cff, f87707bc0406fe92bc142a9eee5f480c94ce9ff8 |
| linux-kernel: Kernel | >=6.12.0 <6.12.111, >=6.13.0 <6.18.53 | 6.12.111, 6.18.53 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket