# CVE-2024-43856: dma: fix call order in dmam_free_coherent

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-08-17T09:24:26.560Z
- Modified: 2026-10-15T01:18:47.923Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before fe2d246080f035e0af5793cb79067ba125e4fb63; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before 2f7bbdc744f2e7051d1cb47c8e082162df1923c9; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before 257193083e8f43907e99ea633820fc2b3bcd24c7; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before 87b34c8c94e29fa01d744e5147697f592998d954; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before f993a4baf6b622232e4c190d34c220179e5d61eb; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before 1fe97f68fce1ba24bf823bfb0eb0956003473130; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before 22094f5f52e7bc16c5bf9613365049383650b02e; from 9ac7849e35f705830f7b016ff272b0ff1f7ff759 before 28e8b7406d3a1f5329a03aa25a43aa28e087cb20; 2.6.21 (not affected: before 2.6.21; from 4.19.320 up to 4.19.*; from 5.4.282 up to 5.4.*; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 2.6.21 before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/fe2d246080f035e0af5793cb79067ba125e4fb63> (patch)
- <https://git.kernel.org/stable/c/2f7bbdc744f2e7051d1cb47c8e082162df1923c9> (patch)
- <https://git.kernel.org/stable/c/257193083e8f43907e99ea633820fc2b3bcd24c7> (patch)
- <https://git.kernel.org/stable/c/87b34c8c94e29fa01d744e5147697f592998d954> (patch)
- <https://git.kernel.org/stable/c/f993a4baf6b622232e4c190d34c220179e5d61eb> (patch)
- <https://git.kernel.org/stable/c/1fe97f68fce1ba24bf823bfb0eb0956003473130> (patch)
- <https://git.kernel.org/stable/c/22094f5f52e7bc16c5bf9613365049383650b02e> (patch)
- <https://git.kernel.org/stable/c/28e8b7406d3a1f5329a03aa25a43aa28e087cb20> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-43856](https://www.cve.org/CVERecord?id=CVE-2024-43856), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-43856](https://nvd.nist.gov/vuln/detail/CVE-2024-43856), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-43856 · Whole record: https://cve.day/CVE-2024-43856.json · Rebuilt by cve.day 2026-11-25T22:58:44.506Z
