Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-40970

published high CVSS 3.1 · 7.8

Avoid hw_desc array overrun in dw-axi-dmac

Published
12 Jul 2024, 12:32:08 UTC
Updated
05 Aug 2026, 11:34:18 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < 7c3bb96a20cd8db3b8824b2ff08b6cde4505c7e5 · ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < dd42570018f5962c10f215ad9c21274ed5d3541e · ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < e151ae1ee065cf4b8ce4394ddb9d9c8df6370c66 · ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < 9004784e8d68bcd1ac1376407ba296fa28f04dbe · ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < 333e11bf47fa8d477db90e2900b1ed3c9ae9b697 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.96 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.99-1 DSA-5731-1
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-docaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-64kbaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-64kb-develaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-azureaarch64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-azurex86_64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-azure-develaarch64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-azure-develx86_64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-baseaarch64 Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-baseppc64le Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-basex86_64 Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-devels390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-extrax86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchs390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatch-develppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatch-devels390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatch-develx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-develnoarch Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-devel-azurenoarch Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-devel-rtnoarch Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: Avoid hw_desc array overrun in dw-axi-dmac I have a use case where nr_buffers = 3 and in which each descriptor is composed by 3 segments, resulting in the DMA channel descs_allocated to be 9. Since axi_desc_put() handles the hw_desc considering the descs_allocated, this scenario would result in a kernel panic (hw_desc array will be overrun). To fix this, the proposal is to add a new member to the axi_dma_desc structure, where we keep the number of allocated hw_descs (axi_desc_alloc()) and use it in axi_desc_put() to handle the hw_desc array correctly. Additionally I propose to remove the axi_chan_start_first_queued() call after completing the transfer, since it was identified that unbalance can occur (started descriptors can be interrupted and transfer ignored due to DMA channel not being enabled).

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

35

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The overrun is reached only by driving a local peripheral (audio/serial/SPI device node) whose driver queues multiple DMA descriptors on a dw-axi-dmac channel; no network- or peer-supplied data influences the descriptor accounting. Physical access is not required, so this is local. AC:L - The overrun is deterministic whenever two or more descriptors are outstanding on the same channel, a state the attacker arranges simply by queueing several buffers/transfers before stopping the stream. No race or unfavorable memory layout beyond the attacker's control is needed to trigger the panic. PR:L - A local unprivileged user with access to a device node backed by this DMA controller (e.g. /dev/snd/pcm*, tty, spidev on the affected RISC-V/ARC/Agilex5/Keem Bay platforms) can drive the prep/terminate cycle. No root or capability check guards the dmaengine client path. UI:N - The attacker performs the buffer queueing and stream teardown itself; no action by another user or administrator is required. S:U - The out-of-bounds access, the corrupted dma_pool free list, and any resulting DMA writes all occur within the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The loop reads well past the end of the kmalloc-96 hw_desc array into adjacent slab objects, and the resulting free-list poisoning lets a later dma_pool_alloc() return an attacker-chosen address usable as a read primitive over arbitrary kernel memory. The leak is not bounded to a few bytes. I:H - pool_block_push() writes the dma address and next-block pointer at the out-of-bounds-derived vaddr with no validation in the non-DMAPOOL_DEBUG path, and links that address into the pool free list so the DMA engine subsequently writes hardware LLI data there. This yields an arbitrary kernel write suitable for control-flow hijacking. A:H - The commit explicitly documents a kernel panic from the hw_desc array overrun, and freeing a NULL/garbage vaddr into the dma pool oopses immediately. The counter underflow from atomic_sub() further corrupts channel state, so the crash is repeatable.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < 7c3bb96a20cd8db3b8824b2ff08b6cde4505c7e5 (affected · git)ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < dd42570018f5962c10f215ad9c21274ed5d3541e (affected · git)ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < e151ae1ee065cf4b8ce4394ddb9d9c8df6370c66 (affected · git)ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < 9004784e8d68bcd1ac1376407ba296fa28f04dbe (affected · git)ef6fb2d6f1abd56cc067c694253ea362159b5ac3 to < 333e11bf47fa8d477db90e2900b1ed3c9ae9b697 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.12 (affected)0 to < 5.12 (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.96 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

3

Linux · cna

Avoid hw_desc array overrun in dw-axi-dmac

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
858a93e27af8de53e673b9bc2d46393fb841cb132fd1b4aec505b7169a74d3eb
Ingested
23 Sep 2026, 08:26:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected