{"id":"CVE-2024-43856","aliases":["CVE-2024-43856"],"related":[],"kind":"vulnerability","state":"published","title":"dma: fix call order in dmam_free_coherent","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma: fix call order in dmam_free_coherent\n\ndmam_free_coherent() frees a DMA allocation, which makes the\nfreed vaddr available for reuse, then calls devres_destroy()\nto remove and free the data structure used to track the DMA\nallocation. Between the two calls, it is possible for a\nconcurrent task to make an allocation with the same vaddr\nand add it to the devres list.\n\nIf this happens, there will be two entries in the devres list\nwith the same vaddr and devres_destroy() can free the wrong\nentry, triggering the WARN_ON() in dmam_match.\n\nFix by destroying the devres entry before freeing the DMA\nallocation.\n\n  kokonut //net/encryption\n    http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma: fix call order in dmam_free_coherent\n\ndmam_free_coherent() frees a DMA allocation, which makes the\nfreed vaddr available for reuse, then calls devres_destroy()\nto remove and free the data structure used to track the DMA\nallocation. Between the two calls, it is possible for a\nconcurrent task to make an allocation with the same vaddr\nand add it to the devres list.\n\nIf this happens, there will be two entries in the devres list\nwith the same vaddr and devres_destroy() can free the wrong\nentry, triggering the WARN_ON() in dmam_match.\n\nFix by destroying the devres entry before freeing the DMA\nallocation.\n\n  kokonut //net/encryption\n    http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: dma: corrige el orden de llamadas en dmam_free_coherent dmam_free_coherent() libera una asignación de DMA, lo que hace que el vaddr liberado esté disponible para su reutilización, luego llama a devres_destroy() para eliminar y liberar la estructura de datos utilizada para realizar un seguimiento de la asignación de DMA. Entre las dos llamadas, es posible que una tarea simultánea realice una asignación con el mismo vaddr y lo agregue a la lista de devres. Si esto sucede, habrá dos entradas en la lista devres con el mismo vaddr y devres_destroy() puede liberar la entrada incorrecta, activando WARN_ON() en dmam_match. Para solucionarlo, destruya la entrada devres antes de liberar la asignación de DMA. kokonut //net/encryption http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03","source":"nvd"}],"published":"2024-08-17T09:24:26.560Z","modified":"2026-10-15T01:18:47.923Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"fe2d246080f035e0af5793cb79067ba125e4fb63","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"2f7bbdc744f2e7051d1cb47c8e082162df1923c9","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"257193083e8f43907e99ea633820fc2b3bcd24c7","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"87b34c8c94e29fa01d744e5147697f592998d954","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"f993a4baf6b622232e4c190d34c220179e5d61eb","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"1fe97f68fce1ba24bf823bfb0eb0956003473130","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"22094f5f52e7bc16c5bf9613365049383650b02e","status":"affected"},{"type":"git","introduced":"9ac7849e35f705830f7b016ff272b0ff1f7ff759","fixed":"28e8b7406d3a1f5329a03aa25a43aa28e087cb20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.21","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.21","status":"unaffected"},{"type":"semver","introduced":"4.19.320","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.282","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.224","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.103","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.44","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.21","fixed":"4.19.320"},{"status":"affected","introduced":"4.20","fixed":"5.4.282"},{"status":"affected","introduced":"5.5","fixed":"5.10.224"},{"status":"affected","introduced":"5.11","fixed":"5.15.165"},{"status":"affected","introduced":"5.16","fixed":"6.1.103"},{"status":"affected","introduced":"6.2","fixed":"6.6.44"},{"status":"affected","introduced":"6.7","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fe2d246080f035e0af5793cb79067ba125e4fb63","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f7bbdc744f2e7051d1cb47c8e082162df1923c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/257193083e8f43907e99ea633820fc2b3bcd24c7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87b34c8c94e29fa01d744e5147697f592998d954","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f993a4baf6b622232e4c190d34c220179e5d61eb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1fe97f68fce1ba24bf823bfb0eb0956003473130","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22094f5f52e7bc16c5bf9613365049383650b02e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28e8b7406d3a1f5329a03aa25a43aa28e087cb20","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:07:08.178Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-43856","url":"https://www.cve.org/CVERecord?id=CVE-2024-43856","licence":"CVE Terms of Use","modified":"2026-10-15T00:48:27.417Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-43856","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43856","licence":"Public domain","modified":"2026-10-15T01:18:47.923Z"}],"updatedAt":"2026-11-25T22:58:44.506Z","epss":{"score":0.00416,"percentile":0.37873,"date":"2026-12-01T12:00:22.000Z"}}