CVE-2024-43856
dma: fix call order in dmam_free_coherent
Check your servers for CVE-2024-43856
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-43856 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
dma: fix call order in dmam_free_coherent
dmam_free_coherent() frees a DMA allocation, which makes the freed vaddr available for reuse, then calls devres_destroy() to remove and free the data structure used to track the DMA allocation. Between the two calls, it is possible for a concurrent task to make an allocation with the same vaddr and add it to the devres list.
If this happens, there will be two entries in the devres list with the same vaddr and devres_destroy() can free the wrong entry, triggering the WARN_ON() in dmam_match.
Fix by destroying the devres entry before freeing the DMA allocation.
kokonut //net/encryption http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.42%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 37.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before fe2d246080f035e0af5793cb79067ba125e4fb63 affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before 2f7bbdc744f2e7051d1cb47c8e082162df1923c9 affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before 257193083e8f43907e99ea633820fc2b3bcd24c7 affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before 87b34c8c94e29fa01d744e5147697f592998d954 affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before f993a4baf6b622232e4c190d34c220179e5d61eb affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before 1fe97f68fce1ba24bf823bfb0eb0956003473130 affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before 22094f5f52e7bc16c5bf9613365049383650b02e affected from 9ac7849e35f705830f7b016ff272b0ff1f7ff759, before 28e8b7406d3a1f5329a03aa25a43aa28e087cb20
Other versions: unaffected
|
| Linux |
affected 2.6.21 unaffected before 2.6.21 unaffected from 4.19.320 up to and including 4.19.* unaffected from 5.4.282 up to and including 5.4.* unaffected from 5.10.224 up to and including 5.10.* unaffected from 5.15.165 up to and including 5.15.* unaffected from 6.1.103 up to and including 6.1.* unaffected from 6.6.44 up to and including 6.6.* unaffected from 6.10.3 up to and including 6.10.* unaffected 6.11 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-43856 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-43856
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-43856
trivy image --scanners vuln IMAGE | grep CVE-2024-43856
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fe2d246080f035e0af5793cb79067ba125e4fb63 git.kernel.org
- https://git.kernel.org/stable/c/2f7bbdc744f2e7051d1cb47c8e082162df1923c9 git.kernel.org
- https://git.kernel.org/stable/c/257193083e8f43907e99ea633820fc2b3bcd24c7 git.kernel.org
- https://git.kernel.org/stable/c/87b34c8c94e29fa01d744e5147697f592998d954 git.kernel.org
- https://git.kernel.org/stable/c/f993a4baf6b622232e4c190d34c220179e5d61eb git.kernel.org
- https://git.kernel.org/stable/c/1fe97f68fce1ba24bf823bfb0eb0956003473130 git.kernel.org
- https://git.kernel.org/stable/c/22094f5f52e7bc16c5bf9613365049383650b02e git.kernel.org
- https://git.kernel.org/stable/c/28e8b7406d3a1f5329a03aa25a43aa28e087cb20 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
Source: the record CVE-2024-43856 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse