ASoC: qcom: q6apm: fix NULL pointer dereference in graph_callback
Summary
| CVE | CVE-2026-72257 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-15 06:21:53 UTC |
| Updated | 2026-08-17 06:18:28 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: q6apm: fix NULL pointer dereference in graph_callback When q6apm_free_fragments() is called it frees rx_data.buf/tx_data.buf and sets them to NULL under graph->lock. A late DSP buffer-done response can race with this: graph_callback() passes the !graph->ar_graph guard (not yet NULL), acquires the lock, but then dereferences a now-NULL buf pointer to read buf[token].phys, crashing at virtual address 0x10. Add a NULL check for buf inside the mutex-protected section in both the write-done (DATA_CMD_RSP_WR_SH_MEM_EP_DATA_BUFFER_DONE_V2) and read-done (DATA_CMD_RSP_RD_SH_MEM_EP_DATA_BUFFER_V2) handlers and bail out cleanly if buffers have already been freed. This problem is only shown up recently while apr bus was updated to process the commands per service rather from single global queue. |
Risk And Classification
EPSS: 0.002050000 probability, percentile 0.108880000 (date 2026-08-17)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 5477518b8a0e8a45239646acd80c9bafc4401522 a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc git | Not specified |
| CNA | Linux | Linux | affected 5477518b8a0e8a45239646acd80c9bafc4401522 ec369eac0795cfa8f4d3a0cd35a1e8e15f780331 git | Not specified |
| CNA | Linux | Linux | affected 5477518b8a0e8a45239646acd80c9bafc4401522 2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3 git | Not specified |
| CNA | Linux | Linux | affected 5477518b8a0e8a45239646acd80c9bafc4401522 ca028334343a140efda4b22e53cbce2c5e94a489 git | Not specified |
| CNA | Linux | Linux | affected 5477518b8a0e8a45239646acd80c9bafc4401522 214af790e3a33ab73587de4c925c60a550eae9c6 git | Not specified |
| CNA | Linux | Linux | affected 5477518b8a0e8a45239646acd80c9bafc4401522 2e9261761b35f0b67b7487688cd1365f535be0b3 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.178 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.145 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.97 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.40 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.1.5 7.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.2 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/2e9261761b35f0b67b7487688cd1365f535be0b3 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/214af790e3a33ab73587de4c925c60a550eae9c6 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/ec369eac0795cfa8f4d3a0cd35a1e8e15f780331 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/ca028334343a140efda4b22e53cbce2c5e94a489 | 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.