CVE-2026-139784
ASoC: qcom: q6apm: clear g_apm on driver removal
AI summary AI generated
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.
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 5477518b8a0e8a45239646acd80c9bafc4401522, < d8b1b4641ab94f11c242d607ce0eb50c690ae35f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 7287dcff7fc65900bee9725d393bfc72f65c26ce; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < fdf83caaf9661d9e88c75cad2cbc41af3286108f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < be2172758f2b7c801ae80b9c8d1510b31eeffdaa
- Anyone running Linux 5.16
Vulnerability facts
- Affected
- Linux >= 5477518b8a0e8a45239646acd80c9bafc4401522, < d8b1b4641ab94f11c242d607ce0eb50c690ae35f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 7287dcff7fc65900bee9725d393bfc72f65c26ce; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < fdf83caaf9661d9e88c75cad2cbc41af3286108f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < be2172758f2b7c801ae80b9c8d1510b31eeffdaa; Linux 5.16
- Fixed in
- Linux 2b81ec95d370c1c29cad60d3bc0a6df0783177cb, Linux 7287dcff7fc65900bee9725d393bfc72f65c26ce, Linux 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5477518b8a0e8a45239646acd80c9bafc4401522, < d8b1b4641ab94f11c242d607ce0eb50c690ae35f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 2b81ec95d370c1c29cad60d3bc0a6df0783177cb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 7287dcff7fc65900bee9725d393bfc72f65c26ce; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < fdf83caaf9661d9e88c75cad2cbc41af3286108f; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < 1b289b08de93766bfc3dac37ecfad5ddc0fc97eb; >= 5477518b8a0e8a45239646acd80c9bafc4401522, < be2172758f2b7c801ae80b9c8d1510b31eeffdaa | — | cvelist |
| Linux | 5.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
Other
- 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
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |