# CVE-2026-139784: ASoC: qcom: q6apm: clear g\_apm on driver removal

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:58.319Z
- **Modified:** 2026-11-30T14:20:11.803Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can trigger a use-after-free in the Linux kernel's Qualcomm q6apm audio driver by calling q6apm\_is\_adsp\_ready() after driver removal, due to a dangling global pointer.

## Who should check

- Anyone running Linux \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< d8b1b4641ab94f11c242d607ce0eb50c690ae35f; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 7287dcff7fc65900bee9725d393bfc72f65c26ce; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< fdf83caaf9661d9e88c75cad2cbc41af3286108f; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< be2172758f2b7c801ae80b9c8d1510b31eeffdaa
- Anyone running Linux 5.16

## 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 and fixed versions

- Linux: \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< d8b1b4641ab94f11c242d607ce0eb50c690ae35f; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 7287dcff7fc65900bee9725d393bfc72f65c26ce; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< fdf83caaf9661d9e88c75cad2cbc41af3286108f; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< be2172758f2b7c801ae80b9c8d1510b31eeffdaa (cvelist)
- Linux: 5.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139784. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139784.md
Affected: Linux >= 5477518b8a0e8a45239646acd80c9bafc4401522, < d8b1b4641ab94f11c242d607ce0eb50c690ae35f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 7287dcff7fc65900bee9725d393bfc72f65c26ce; >= 5477518b8a0e8a45239646a…
Fixed in: Linux 2b81ec95d370c1c29cad60d3bc0a6df0783177cb, Linux 7287dcff7fc65900bee9725d393bfc72f65c26ce, Linux 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139784 being exploited?

There is no confirmed exploitation: CVE-2026-139784 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139784?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139784?

Linux \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< d8b1b4641ab94f11c242d607ce0eb50c690ae35f; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 7287dcff7fc65900bee9725d393bfc72f65c26ce; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< fdf83caaf9661d9e88c75cad2cbc41af3286108f; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb; \>= 5477518b8a0e8a45239646acd80c9bafc4401522, \< be2172758f2b7c801ae80b9c8d1510b31eeffdaa; Linux 5.16.

### Is there a fix for CVE-2026-139784?

Yes. Fixed in Linux 2b81ec95d370c1c29cad60d3bc0a6df0783177cb, Linux 7287dcff7fc65900bee9725d393bfc72f65c26ce, Linux 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139784?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/d8b1b4641ab94f11c242d607ce0eb50c690ae35f>
- other: <https://git.kernel.org/stable/c/2b81ec95d370c1c29cad60d3bc0a6df0783177cb>
- other: <https://git.kernel.org/stable/c/7287dcff7fc65900bee9725d393bfc72f65c26ce>
- other: <https://git.kernel.org/stable/c/fdf83caaf9661d9e88c75cad2cbc41af3286108f>
- other: <https://git.kernel.org/stable/c/1b289b08de93766bfc3dac37ecfad5ddc0fc97eb>
- other: <https://git.kernel.org/stable/c/be2172758f2b7c801ae80b9c8d1510b31eeffdaa>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139784>

HTML: <https://flawdb.com/CVE-2026-139784> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139784>
