CVE-2025-39923
dmaengine: qcom: bam_dma: Fix DT error handling for num-channels/ees
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: qcom: bam_dma: Fix DT error handling for num-channels/ees When we don't have a clock specified in the device tree, we have no way to ensure the BAM is on. This is often the case for remotely-controlled or remotely-powered BAM instances. In this case, we need to read num-channels from the DT to have all the necessary information to complete probing. However, at the moment invalid device trees without clock and without num-channels still continue probing, because the error handling is missing return statements. The driver will then later try to read the number of channels from the registers. This is unsafe, because it relies on boot firmware and lucky timing to succeed. Unfortunately, the lack of proper error handling here has been abused for several Qualcomm SoCs upstream, causing early boot crashes in several situations [1, 2]. Avoid these early crashes by erroring out when any of the required DT properties are missing. Note that this will break some of the existing DTs upstream (mainly BAM instances related to the crypto engine). However, clearly these DTs have never been tested properly, since the error in the kernel log was just ignored. It's safer to disable the crypto engine for these broken DTBs. [1]: https://lore.kernel.org/r/[email protected]/ [2]: https://lore.kernel.org/r/[email protected]/
INFO
Published Date :
Oct. 1, 2025, 8:15 a.m.
Last Modified :
Oct. 19, 2026, 10:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2025-39923
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Apply the kernel patch for dmaengine: qcom: bam_dma.
- Ensure clock and num-channels are in the device tree.
- Update device tree bindings if necessary.
- Disable crypto engine for broken device trees.
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-2025-39923.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-39923 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-2025-39923
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-2025-39923 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-39923 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 Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: dmaengine: qcom: bam_dma: Corrección del manejo de errores de DT para num-channels/ees Cuando no tenemos un reloj especificado en el árbol de dispositivos, no tenemos forma de asegurar que el BAM esté encendido. Este es a menudo el caso para instancias de BAM controladas remotamente o alimentadas remotamente. En este caso, necesitamos leer num-channels del DT para tener toda la información necesaria para completar el sondeo. Sin embargo, en este momento los árboles de dispositivos inválidos sin reloj y sin num-channels todavía continúan el sondeo, porque al manejo de errores le faltan sentencias de retorno. El controlador intentará entonces más tarde leer el número de canales de los registros. Esto es inseguro, porque depende del firmware de arranque y de una sincronización afortunada para tener éxito. Desafortunadamente, la falta de un manejo de errores adecuado aquí ha sido abusada para varios SoCs de Qualcomm en la rama principal, causando fallos de arranque tempranos en varias situaciones [1, 2]. Evite estos fallos tempranos al generar un error cuando falte alguna de las propiedades de DT requeridas. Tenga en cuenta que esto romperá algunos de los DTs existentes en la rama principal (principalmente instancias de BAM relacionadas con el motor criptográfico). Sin embargo, claramente estos DTs nunca han sido probados correctamente, ya que el error en el registro del kernel fue simplemente ignorado. Es más seguro deshabilitar el motor criptográfico para estos DTBs rotos. [1]: https://lore.kernel.org/r/[email protected]/ [2]: https://lore.kernel.org/r/[email protected]/ -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 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': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '2e257a6125c63350f00dc42b9674f20fd3cf4a9f', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '555bd16351a35c79efb029a196975a5a27f7fbc4', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': 'ebf6c7c908e5999531c3517289598f187776124f', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '1fc14731f0be4885e60702b9596d14d9a79cf053', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '0ff9df758af7022d749718fb6b8385cc5693acf3', 'versionType': 'git'}, {'status': 'affected', 'version': '48d163b1aa6e7f650c0b7a4f9c61c387a6def868', 'lessThan': '5068b5254812433e841a40886e695633148d362d', 'versionType': 'git'}, {'status': 'affected', 'version': 'cecf8a69042b3a54cb843223756c10ee8a8665e3', 'versionType': 'git'}, {'status': 'affected', 'version': '909474cd384cb206f33461fbd18089cf170533f8', 'versionType': 'git'}, {'status': 'affected', 'version': '5e0986f7caf17d7b1acd2092975360bf8e88a57d', 'versionType': 'git'}, {'status': 'affected', 'version': '4.9.104', 'lessThan': '4.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.14.45', 'lessThan': '4.15', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.16.13', 'lessThan': '4.17', 'versionType': 'semver'}], 'programFiles': ['drivers/dma/qcom/bam_dma.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.4.300', 'versionType': 'semver', 'lessThanOrEqual': '5.4.*'}, {'status': 'unaffected', 'version': '5.10.245', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.194', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.153', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.107', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.48', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.16.8', 'versionType': 'semver', 'lessThanOrEqual': '6.16.*'}, {'status': 'unaffected', 'version': '6.17', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/dma/qcom/bam_dma.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Jan. 20, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.194 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.153 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.245 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.107 *cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.16.8 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.48 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.14.45 up to (excluding) 4.15 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.16.13 up to (excluding) 5.4.300 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.9.104 up to (excluding) 4.10 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/0ff9df758af7022d749718fb6b8385cc5693acf3 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/1fc14731f0be4885e60702b9596d14d9a79cf053 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/2e257a6125c63350f00dc42b9674f20fd3cf4a9f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/5068b5254812433e841a40886e695633148d362d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/555bd16351a35c79efb029a196975a5a27f7fbc4 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ebf6c7c908e5999531c3517289598f187776124f Types: Patch Added Reference Type CVE: https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html Types: Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 02, 2025
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2 Added Reference https://git.kernel.org/stable/c/2e257a6125c63350f00dc42b9674f20fd3cf4a9f Added Reference https://git.kernel.org/stable/c/6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 01, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: dmaengine: qcom: bam_dma: Fix DT error handling for num-channels/ees When we don't have a clock specified in the device tree, we have no way to ensure the BAM is on. This is often the case for remotely-controlled or remotely-powered BAM instances. In this case, we need to read num-channels from the DT to have all the necessary information to complete probing. However, at the moment invalid device trees without clock and without num-channels still continue probing, because the error handling is missing return statements. The driver will then later try to read the number of channels from the registers. This is unsafe, because it relies on boot firmware and lucky timing to succeed. Unfortunately, the lack of proper error handling here has been abused for several Qualcomm SoCs upstream, causing early boot crashes in several situations [1, 2]. Avoid these early crashes by erroring out when any of the required DT properties are missing. Note that this will break some of the existing DTs upstream (mainly BAM instances related to the crypto engine). However, clearly these DTs have never been tested properly, since the error in the kernel log was just ignored. It's safer to disable the crypto engine for these broken DTBs. [1]: https://lore.kernel.org/r/[email protected]/ [2]: https://lore.kernel.org/r/[email protected]/ Added Reference https://git.kernel.org/stable/c/0ff9df758af7022d749718fb6b8385cc5693acf3 Added Reference https://git.kernel.org/stable/c/1fc14731f0be4885e60702b9596d14d9a79cf053 Added Reference https://git.kernel.org/stable/c/5068b5254812433e841a40886e695633148d362d Added Reference https://git.kernel.org/stable/c/555bd16351a35c79efb029a196975a5a27f7fbc4 Added Reference https://git.kernel.org/stable/c/ebf6c7c908e5999531c3517289598f187776124f