# CVE-2025-39923: dmaengine: qcom: bam\_dma: Fix DT error handling for num-channels/ees

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-28)
- **Published:** 2025-10-01T08:07:11.469Z
- **Modified:** 2026-10-19T22:10:00.130Z

## Who should check

- Anyone running Linux \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 2e257a6125c63350f00dc42b9674f20fd3cf4a9f; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 555bd16351a35c79efb029a196975a5a27f7fbc4; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< ebf6c7c908e5999531c3517289598f187776124f; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 1fc14731f0be4885e60702b9596d14d9a79cf053; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 0ff9df758af7022d749718fb6b8385cc5693acf3; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 5068b5254812433e841a40886e695633148d362d; cecf8a69042b3a54cb843223756c10ee8a8665e3; 909474cd384cb206f33461fbd18089cf170533f8; …
- Anyone running Linux 4.17

## 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/CY01EKQVWE36.B9X5TDXAREPF@fairphone.com/
\[2\]: https://lore.kernel.org/r/20230626145959.646747-1-krzysztof.kozlowski@linaro.org/

## Affected and fixed versions

- Linux: \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 2e257a6125c63350f00dc42b9674f20fd3cf4a9f; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 555bd16351a35c79efb029a196975a5a27f7fbc4; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< ebf6c7c908e5999531c3517289598f187776124f; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 1fc14731f0be4885e60702b9596d14d9a79cf053; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 0ff9df758af7022d749718fb6b8385cc5693acf3; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 5068b5254812433e841a40886e695633148d362d; cecf8a69042b3a54cb843223756c10ee8a8665e3; 909474cd384cb206f33461fbd18089cf170533f8; … (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39923. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39923.md
Affected: Linux >= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, < 2e257a6125c63350f00dc42b9674f20fd3cf4a9f; >= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, < 1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2; >= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, < 6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c; >= 48d163b1aa6e7f650c0b7a4…
Fixed in: Linux 2e257a6125c63350f00dc42b9674f20fd3cf4a9f, Linux 1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2, Linux 6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c, Linux 555bd16351a35c79efb029a196975a5a27f7fbc4, Linux 1fc14731f0be4885e60702b9596d14d9a79cf053, Linux 0ff9df758af7022d749718fb6b8385cc5693acf3, Linux 5068b…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39923 being exploited?

There is no confirmed exploitation: CVE-2025-39923 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-39923?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39923?

Linux \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 2e257a6125c63350f00dc42b9674f20fd3cf4a9f; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 555bd16351a35c79efb029a196975a5a27f7fbc4; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< ebf6c7c908e5999531c3517289598f187776124f; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 1fc14731f0be4885e60702b9596d14d9a79cf053; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 0ff9df758af7022d749718fb6b8385cc5693acf3; \>= 48d163b1aa6e7f650c0b7a4f9c61c387a6def868, \< 5068b5254812433e841a40886e695633148d362d; cecf8a69042b3a54cb843223756c10ee8a8665e3; 909474cd384cb206f33461fbd18089cf170533f8; …; Linux 4.17.

### Is there a fix for CVE-2025-39923?

Yes. Fixed in Linux 2e257a6125c63350f00dc42b9674f20fd3cf4a9f, Linux 1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2, Linux 6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c, Linux 555bd16351a35c79efb029a196975a5a27f7fbc4, Linux 1fc14731f0be4885e60702b9596d14d9a79cf053, Linux 0ff9df758af7022d749718fb6b8385cc5693acf3, Linux 5068b5254812433e841a40886e695633148d362d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39923?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2e257a6125c63350f00dc42b9674f20fd3cf4a9f>
- patch: <https://git.kernel.org/stable/c/1d98ba204d8a6db0d986c7f1aefaa0dcd1c007a2>
- patch: <https://git.kernel.org/stable/c/6ac1599d0e78036d9d08efc2f58c2d91f0a3ee4c>
- patch: <https://git.kernel.org/stable/c/555bd16351a35c79efb029a196975a5a27f7fbc4>
- patch: <https://git.kernel.org/stable/c/ebf6c7c908e5999531c3517289598f187776124f>
- patch: <https://git.kernel.org/stable/c/1fc14731f0be4885e60702b9596d14d9a79cf053>
- patch: <https://git.kernel.org/stable/c/0ff9df758af7022d749718fb6b8385cc5693acf3>
- patch: <https://git.kernel.org/stable/c/5068b5254812433e841a40886e695633148d362d>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39923>

HTML: <https://flawdb.com/CVE-2025-39923> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39923>
