CVE-2026-139784

ASoC: qcom: q6apm: clear g_apm on driver removal

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

During the removal of a Qualcomm Asynchronous Audio Codec driver, the global pointer used for audio management was not cleared. When the driver’s resources were freed, subsequent checks to determine audio system readiness dereferenced this dangling pointer, causing a use‑after‑free kernel crash. It is inferred from the description that an attacker with local access would need to trigger driver removal and subsequent readiness checks, which could lead to privilege escalation or denial of service.

Affected Systems

The flaw resides in the Linux kernel’s Audio SubSystem (ASoC) driver for Qualcomm q6apm devices. Any system running a Linux kernel that includes this driver component is affected. The issue exists wherever the q6apm driver is compiled into the kernel image.

Risk and Exploitability

The vulnerability is exploitable only with local kernel access because malicious code must trigger driver removal and subsequent readiness checks. This inference is based on the description of driver removal and the requirement that q6apm_is_adsp_ready() be called after the pointer is dangling. No active exploit has been reported, the EPSS is unavailable, and the problem is not listed in CISA KEV. The CVSS score is not provided, but the nature of the flaw warrants caution and rapid remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest version that includes the q6apm driver code.
  • Restart the system after upgrading to ensure the patched driver is loaded and the global pointer is correctly cleared.
  • If you cannot immediately upgrade, temporarily unload the q6apm driver module using `modprobe -r q6apm` and disable it from auto‑loading to prevent the use‑after‑free until the kernel patch is applied.

Generated by OpenCVE AI on December 1, 2026 at 15:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title ASoC: qcom: q6apm: clear g_apm on driver removal
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:37 PM