Look up another CVE · open CVE-2024-27408 in the interactive tracker
CVE-2024-27408
dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup
Published 2024-05-17 (2 years ago) by the Linux kernel CNA. Subsystem drivers/dma. Debian urgency: not yet assigned.
Debian does not build this code. The per-release build detail is under "Where it lives" below.
What to do, per Debian release
Debian's own status for CVE-2024-27408 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.7.9-1 | Update the kernel and reboot. Fixed in 6.7.9-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.7.9-1 | Update the kernel and reboot. Fixed in 6.7.9-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.7.9-1 | Update the kernel and reboot. Fixed in 6.7.9-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
The Linked list element and pointer are not stored in the same memory as the eDMA controller register. If the doorbell register is toggled before the full write of the linked list a race condition error will occur. In remote setup we can only use a readl to the memory to assure the full write has occurred.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
drivers/dma/dw-edma/dw-edma-v0-core.c
- What this is
- DESIGNWARE EDMA CORE IP DRIVERMAINTAINERS section matched on drivers/dma/dw-edma/ · dmaengine@vger.kernel.org · Maintained
- Kernel module
- none to look for. The file would have gone into dw_edma, and Debian does not compile it into that module, so finding dw_edma in lsmod would say nothing about this CVE.
Check it on the machine
grep -wE 'CONFIG_DMADEVICES|CONFIG_DW_EDMA' /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
Show whether Debian builds this, per release
Debian does not build this code. In 4 releases below, every kernel flavour Debian publishes has the switch off, so the vulnerable file is compiled into no kernel binary Debian ships.
- bookworm, trixie, forky, sidn
- n
- not enabled on any flavour - this release does not build the code
- Build switches
- CONFIG_DMADEVICES, CONFIG_DW_EDMA
- Reads as
- all on means the file is compiled; any one off means it is not.
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2024-05-17 (2 years ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.19%, higher than 8.3% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- drivers/dma
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 5.3 | 6.6.21 | d24fe6d5a1cf |
| 5.3 | 6.7.9 | f396b4df27cf |
| 5.3 | 6.8 | bbcc1c83f343 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- The vulnerable sequence is reached only through the local dmaengine client API (`dma_async_issue_pending()` → `dw_edma_device_issue_pending()` → `dw_edma_v0_core_start()`), i.e. via a device node or in-kernel client on the host driving the remote eDMA. There is no network- or packet-facing path into drivers/dma/dw-edma/.
- AC:LAttack complexity, low
- An attacker able to submit transfers can repeat them indefinitely at no cost and can widen the window at will by building large scatter-gather lists, since every chunk re-writes the LL and rings the doorbell again — and per the commit, on affected remote setups the unordered doorbell simply races the LL writes rather than requiring an unusual condition.
- PR:LPrivileges required, low
- No capability check exists on the path — the dmaengine core imposes none, so an unprivileged local account with ordinary access to a client device node backed by these eDMA channels is sufficient to issue the transfers that ring the doorbell.
- UI:NUser interaction, none
- The attacker drives the entire submit/complete cycle on its own; no action by another user or administrator is needed, and an already-bound dw-edma-pcie device is system configuration rather than victim interaction.
- S:UScope, unchanged
- The corrupted transfers act on host memory already within the DMA mapping the kernel authorized for this device, all under the same kernel security authority; no IOMMU, VM, or sandbox boundary is bypassed.
- C:HConfidentiality impact, high
- A torn descriptor makes the engine read from the previous chunk's SAR while writing to the new DAR, and a not-yet-landed LLP terminator lets it walk past the LL region and follow arbitrary BAR contents as descriptors, so effectively arbitrary host memory can be sourced and shipped to the remote endpoint or into a buffer the attacker reads back.
- I:HIntegrity impact, high
- The same stale or run-away descriptors give the PCIe engine a write with attacker-influenceable destination and length into host kernel-mapped memory — a memory-corruption write primitive, not merely wrong data in the intended buffer.
- A:HAvailability impact, high
- DMA into unintended kernel memory reliably produces corruption and oops/panic, and the malformed descriptor walk also raises linked-list errors and abort interrupts that stall the channel and hang clients waiting on completion.