CVE-2026-72257
ASoC: qcom: q6apm: fix NULL pointer dereference in graph_callback
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.
INFO
Published Date :
Aug. 15, 2026, 6:21 a.m.
Last Modified :
Aug. 17, 2026, 6:18 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Check for NULL buf pointer in write-done handler.
- Check for NULL buf pointer in read-done handler.
- Acquire lock before checking buf pointer.
- Bail out cleanly if buffers are freed.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-72257.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-72257 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-72257
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-72257 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-72257 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'ec369eac0795cfa8f4d3a0cd35a1e8e15f780331', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'ca028334343a140efda4b22e53cbce2c5e94a489', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '214af790e3a33ab73587de4c925c60a550eae9c6', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '2e9261761b35f0b67b7487688cd1365f535be0b3', 'versionType': 'git'}], 'programFiles': ['sound/soc/qcom/qdsp6/q6apm.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['sound/soc/qcom/qdsp6/q6apm.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'ec369eac0795cfa8f4d3a0cd35a1e8e15f780331', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'ca028334343a140efda4b22e53cbce2c5e94a489', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '214af790e3a33ab73587de4c925c60a550eae9c6', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '2e9261761b35f0b67b7487688cd1365f535be0b3', 'versionType': 'git'}], 'programFiles': ['sound/soc/qcom/qdsp6/q6apm.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['sound/soc/qcom/qdsp6/q6apm.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 15, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'ec369eac0795cfa8f4d3a0cd35a1e8e15f780331', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': 'ca028334343a140efda4b22e53cbce2c5e94a489', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '214af790e3a33ab73587de4c925c60a550eae9c6', 'versionType': 'git'}, {'status': 'affected', 'version': '5477518b8a0e8a45239646acd80c9bafc4401522', 'lessThan': '2e9261761b35f0b67b7487688cd1365f535be0b3', 'versionType': 'git'}], 'programFiles': ['sound/soc/qcom/qdsp6/q6apm.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.97', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.40', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.5', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['sound/soc/qcom/qdsp6/q6apm.c'], 'defaultStatus': 'affected'}] Added 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. Added Reference https://git.kernel.org/stable/c/214af790e3a33ab73587de4c925c60a550eae9c6 Added Reference https://git.kernel.org/stable/c/2c715f8a1e644ce4c3e8be5b0fd3f1f4704b73b3 Added Reference https://git.kernel.org/stable/c/2e9261761b35f0b67b7487688cd1365f535be0b3 Added Reference https://git.kernel.org/stable/c/a164e744d8de1c41049bd9a1452a4b6bbf5bd8bc Added Reference https://git.kernel.org/stable/c/ca028334343a140efda4b22e53cbce2c5e94a489 Added Reference https://git.kernel.org/stable/c/ec369eac0795cfa8f4d3a0cd35a1e8e15f780331