CVE-2026-139784: ASoC: qcom: q6apm: clear g_apm on driver removal

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ASoC: qcom: q6apm: clear gapm on driver removal

The global gapm pointer is set during apmprobe() but never cleared in apmremove(). After the driver is removed the devm-managed struct q6apm is freed, leaving gapm dangling. A subsequent call to q6apmisadspready() dereferences the freed pointer.

Clear gapm in apmremove() before the component is unregistered so that q6apmisadspready() returns false instead of triggering a use-after-free.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Clear the global g_apm pointer in apm_remove() before unregistering the component, so q6apm_is_adsp_ready() does not dereference freed memory.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
Description

Frequently Asked Questions

1

When can this use-after-free occur?

It can occur after the q6apm driver has been removed, when a later call to q6apm_is_adsp_ready() dereferences the global g_apm pointer that still refers to freed devm-managed memory.

2

What behavior does the fix introduce after driver removal?

The fix clears g_apm in apm_remove() before the component is unregistered. Subsequent q6apm_is_adsp_ready() calls return false rather than dereferencing the stale pointer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203