ASoC: qcom: q6apm: clear g_apm on driver removal
Summary
| CVE | CVE-2026-139784 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-30 14:20:11 UTC |
| Updated | 2026-11-30 14:20:11 UTC |
| 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 5477518b8a0e8a45239646acd80c9bafc4401522 d8b1b4641ab94f11c242d607ce0eb50c690ae35f git |
Not specified |
| CNA |
Linux |
Linux |
affected 5477518b8a0e8a45239646acd80c9bafc4401522 2b81ec95d370c1c29cad60d3bc0a6df0783177cb git |
Not specified |
| CNA |
Linux |
Linux |
affected 5477518b8a0e8a45239646acd80c9bafc4401522 7287dcff7fc65900bee9725d393bfc72f65c26ce git |
Not specified |
| CNA |
Linux |
Linux |
affected 5477518b8a0e8a45239646acd80c9bafc4401522 fdf83caaf9661d9e88c75cad2cbc41af3286108f git |
Not specified |
| CNA |
Linux |
Linux |
affected 5477518b8a0e8a45239646acd80c9bafc4401522 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb git |
Not specified |
| CNA |
Linux |
Linux |
affected 5477518b8a0e8a45239646acd80c9bafc4401522 be2172758f2b7c801ae80b9c8d1510b31eeffdaa git |
Not specified |
| CNA |
Linux |
Linux |
affected 5.16 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.16 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.119 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.65 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.6 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/2b81ec95d370c1c29cad60d3bc0a6df0783177cb |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/fdf83caaf9661d9e88c75cad2cbc41af3286108f |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/7287dcff7fc65900bee9725d393bfc72f65c26ce |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/1b289b08de93766bfc3dac37ecfad5ddc0fc97eb |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/d8b1b4641ab94f11c242d607ce0eb50c690ae35f |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/be2172758f2b7c801ae80b9c8d1510b31eeffdaa |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.