CVE-2025-39938

Source
https://cve.org/CVERecord?id=CVE-2025-39938
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39938.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-39938
Downstream
Related
Published
2025-10-04T07:31:01.736Z
Modified
2026-03-11T07:46:47.105133807Z
Summary
ASoC: qcom: q6apm-lpass-dais: Fix NULL pointer dereference if source graph failed
Details

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

ASoC: qcom: q6apm-lpass-dais: Fix NULL pointer dereference if source graph failed

If earlier opening of source graph fails (e.g. ADSP rejects due to incorrect audioreach topology), the graph is closed and "daidata->graph[dai->id]" is assigned NULL. Preparing the DAI for sink graph continues though and next call to q6apmlpassdaiprepare() receives dai_data->graph[dai->id]=NULL leading to NULL pointer exception:

qcom-apm gprsvc:service:2:1: Error (1) Processing 0x01001002 cmd qcom-apm gprsvc:service:2:1: DSP returned error[1001002] 1 q6apm-lpass-dais 30000000.remoteproc:glink-edge:gpr:service@1:bedais: fail to start APM port 78 q6apm-lpass-dais 30000000.remoteproc:glink-edge:gpr:service@1:bedais: ASoC: error at sndsocpcmdaiprepare on TXCODECDMATX3: -22 Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a8 ... Call trace: q6apmgraphmediaformatpcm+0x48/0x120 (P) q6apmlpassdaiprepare+0x110/0x1b4 sndsocpcmdai_prepare+0x74/0x108 _socpcmprepare+0x44/0x160 dpcmbedaiprepare+0x124/0x1c0

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39938.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
30ad723b93ade607a678698e5947a55a4375c3a1
Fixed
01d1ba106c9e02a2e7d41e07be49031a0ff0ecaa
Fixed
411f7d4f7038200cdf6d4f71ee31026ebf2dfedb
Fixed
9c534dbfd1726502abcf0bd393a04214f62c050b
Fixed
cc336b242ea7e7a09b3ab9f885341455ca0a3bdb
Fixed
68f27f7c7708183e7873c585ded2f1b057ac5b97

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39938.json"