{"id":"CVE-2025-39869","aliases":["CVE-2025-39869"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: ti: edma: Fix memory allocation size for queue_priority_map","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: ti: edma: Fix memory allocation size for queue_priority_map\n\nFix a critical memory allocation bug in edma_setup_from_hw() where\nqueue_priority_map was allocated with insufficient memory. The code\ndeclared queue_priority_map as s8 (*)[2] (pointer to array of 2 s8),\nbut allocated memory using sizeof(s8) instead of the correct size.\n\nThis caused out-of-bounds memory writes when accessing:\n  queue_priority_map[i][0] = i;\n  queue_priority_map[i][1] = i;\n\nThe bug manifested as kernel crashes with \"Oops - undefined instruction\"\non ARM platforms (BeagleBoard-X15) during EDMA driver probe, as the\nmemory corruption triggered kernel hardening features on Clang.\n\nChange the allocation to use sizeof(*queue_priority_map) which\nautomatically gets the correct size for the 2D array structure.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: ti: edma: Fix memory allocation size for queue_priority_map\n\nFix a critical memory allocation bug in edma_setup_from_hw() where\nqueue_priority_map was allocated with insufficient memory. The code\ndeclared queue_priority_map as s8 (*)[2] (pointer to array of 2 s8),\nbut allocated memory using sizeof(s8) instead of the correct size.\n\nThis caused out-of-bounds memory writes when accessing:\n  queue_priority_map[i][0] = i;\n  queue_priority_map[i][1] = i;\n\nThe bug manifested as kernel crashes with \"Oops - undefined instruction\"\non ARM platforms (BeagleBoard-X15) during EDMA driver probe, as the\nmemory corruption triggered kernel hardening features on Clang.\n\nChange the allocation to use sizeof(*queue_priority_map) which\nautomatically gets the correct size for the 2D array structure.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndmaengine: ti: edma: Corregir el tamaño de asignación de memoria para queue_priority_map\n\nCorregir un error crítico de asignación de memoria en edma_setup_from_hw() donde queue_priority_map fue asignado con memoria insuficiente. El código declaró queue_priority_map como s8 (*)[2] (puntero a un array de 2 s8), pero asignó memoria usando sizeof(s8) en lugar del tamaño correcto.\n\nEsto causó escrituras de memoria fuera de límites al acceder a:\nqueue_priority_map[i][0] = i;\nqueue_priority_map[i][1] = i;\n\nEl error se manifestó como fallos del kernel con 'Oops - undefined instruction' en plataformas ARM (BeagleBoard-X15) durante la sonda del controlador EDMA, ya que la corrupción de memoria activó características de endurecimiento del kernel en Clang.\n\nCambiar la asignación para usar sizeof(*queue_priority_map) lo que obtiene automáticamente el tamaño correcto para la estructura del array 2D.","source":"nvd"}],"published":"2025-09-23T06:00:43.852Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"7d4de60d6db02d9b01d5890d5156b04fad65d07a","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"d722de80ce037dccf6931e778f4a46499d51bdf9","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"301a96cc4dc006c9a285913d301e681cfbf7edb6","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"5e462fa0dfdb52b3983cf41532d3d4c7d63e2f93","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"1baed10553fc8b388351d8fc803e3ae6f1a863bc","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"069fd1688c57c0cc8a3de64d108579b31676f74b","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"d5e82f3f2c918d446df46e8d65f8083fd97cdec5","status":"affected"},{"type":"git","introduced":"2b6b3b7420190888793c49e97276e1e73bd7eaed","fixed":"e63419dbf2ceb083c1651852209c7f048089ac0f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.4","status":"unaffected"},{"type":"semver","introduced":"5.4.300","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.245","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.194","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.153","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.107","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.48","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.8","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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":"4.4","fixed":"5.4.300"},{"status":"affected","introduced":"5.5","fixed":"5.10.245"},{"status":"affected","introduced":"5.11","fixed":"5.15.194"},{"status":"affected","introduced":"5.16","fixed":"6.1.153"},{"status":"affected","introduced":"6.2","fixed":"6.6.107"},{"status":"affected","introduced":"6.7","fixed":"6.12.48"},{"status":"affected","introduced":"6.13","fixed":"6.16.8"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7d4de60d6db02d9b01d5890d5156b04fad65d07a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d722de80ce037dccf6931e778f4a46499d51bdf9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/301a96cc4dc006c9a285913d301e681cfbf7edb6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e462fa0dfdb52b3983cf41532d3d4c7d63e2f93","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1baed10553fc8b388351d8fc803e3ae6f1a863bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/069fd1688c57c0cc8a3de64d108579b31676f74b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5e82f3f2c918d446df46e8d65f8083fd97cdec5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e63419dbf2ceb083c1651852209c7f048089ac0f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39869","url":"https://www.cve.org/CVERecord?id=CVE-2025-39869","licence":"CVE Terms of Use","modified":"2026-08-05T12:05:47.739Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39869","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39869","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.028Z","epss":{"score":0.0017,"percentile":0.06718,"date":"2026-12-01T12:00:22.000Z"}}