Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-139784

ASoC: qcom: q6apm: clear g_apm on driver removal

Published 30/11/2026 · Updated 30/11/2026 · Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: q6apm: clear g_apm on driver removal The global g_apm pointer is set during apm_probe() but never cleared in apm_remove(). After the driver is removed the devm-managed struct q6apm is freed, leaving g_apm dangling. A subsequent call to q6apm_is_adsp_ready() dereferences the freed pointer. Clear g_apm in apm_remove() before the component is unregistered so that q6apm_is_adsp_ready() returns false instead of triggering a use-after-free.

Affected products and versions

Linux Linux5477518b8a0e8a45239646acd80c9bafc4401522 – < d8b1b4641ab94f11c242d607ce0eb50c690ae35f · 5477518b8a0e8a45239646acd80c9bafc4401522 – < 2b81ec95d370c1c29cad60d3bc0a6df0783177cb · 5477518b8a0e8a45239646acd80c9bafc4401522 – < 7287dcff7fc65900bee9725d393bfc72f65c26ce · 5477518b8a0e8a45239646acd80c9bafc4401522 – < fdf83caaf9661d9e88c75cad2cbc41af3286108f · 5477518b8a0e8a45239646acd80c9bafc4401522 – < 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb · 5477518b8a0e8a45239646acd80c9bafc4401522 – < be2172758f2b7c801ae80b9c8d1510b31eeffdaaFixed in: d8b1b4641ab94f11c242d607ce0eb50c690ae35f · 2b81ec95d370c1c29cad60d3bc0a6df0783177cb · 7287dcff7fc65900bee9725d393bfc72f65c26ce · fdf83caaf9661d9e88c75cad2cbc41af3286108f · 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb · be2172758f2b7c801ae80b9c8d1510b31eeffdaa
Linux Linux5.16Fixed in: 6.1.193 · 6.6.163 · 6.12.119 · 6.18.65 · 7.3.6 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.