ASoC: qcom: q6apm: clear g_apm on driver removal
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 5477518b8a0e8a45239646acd80c9bafc4401522 to before d8b1b4641ab94f11c242d607ce0eb50c690ae35f Affected5477518b8a0e8a45239646acd80c9bafc4401522 to before 2b81ec95d370c1c29cad60d3bc0a6df0783177cb Affected5477518b8a0e8a45239646acd80c9bafc4401522 to before 7287dcff7fc65900bee9725d393bfc72f65c26ce Affected5477518b8a0e8a45239646acd80c9bafc4401522 to before fdf83caaf9661d9e88c75cad2cbc41af3286108f Affected5477518b8a0e8a45239646acd80c9bafc4401522 to before 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb Affected5477518b8a0e8a45239646acd80c9bafc4401522 to before be2172758f2b7c801ae80b9c8d1510b31eeffdaa Affected |
| Linux Linux | 5.16 Affectedbefore 5.16 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/d8b1b4641ab94f11c242d607ce0eb50c690ae35f
- https://git.kernel.org/stable/c/2b81ec95d370c1c29cad60d3bc0a6df0783177cb
- https://git.kernel.org/stable/c/7287dcff7fc65900bee9725d393bfc72f65c26ce
- https://git.kernel.org/stable/c/fdf83caaf9661d9e88c75cad2cbc41af3286108f
- https://git.kernel.org/stable/c/1b289b08de93766bfc3dac37ecfad5ddc0fc97eb
- https://git.kernel.org/stable/c/be2172758f2b7c801ae80b9c8d1510b31eeffdaa
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.