{"id":"CVE-2025-39787","aliases":["CVE-2025-39787"],"related":[],"kind":"vulnerability","state":"published","title":"soc: qcom: mdt_loader: Ensure we don't read past the ELF header","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: mdt_loader: Ensure we don't read past the ELF header\n\nWhen the MDT loader is used in remoteproc, the ELF header is sanitized\nbeforehand, but that's not necessary the case for other clients.\n\nValidate the size of the firmware buffer to ensure that we don't read\npast the end as we iterate over the header. e_phentsize and e_shentsize\nare validated as well, to ensure that the assumptions about step size in\nthe traversal are valid.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: mdt_loader: Ensure we don't read past the ELF header\n\nWhen the MDT loader is used in remoteproc, the ELF header is sanitized\nbeforehand, but that's not necessary the case for other clients.\n\nValidate the size of the firmware buffer to ensure that we don't read\npast the end as we iterate over the header. e_phentsize and e_shentsize\nare validated as well, to ensure that the assumptions about step size in\nthe traversal are valid.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad se ha resuelto:\n\nsoc: qcom: mdt_loader: Asegurar que no leemos más allá del encabezado ELF\n\nCuando el cargador MDT se utiliza en remoteproc, el encabezado ELF se sanitiza de antemano, pero ese no es necesariamente el caso para otros clientes.\n\nValidar el tamaño del búfer de firmware para asegurar que no leemos más allá del final mientras iteramos sobre el encabezado. e_phentsize y e_shentsize también se validan, para asegurar que las suposiciones sobre el tamaño del paso en el recorrido sean válidas.","source":"nvd"}],"published":"2025-09-11T16:56:36.426Z","modified":"2026-10-19T21:10:00.160Z","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":[],"affected":[{"ranges":[{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"1096eb63ecfc8df90b70cd068e6de0c2ff204dfd","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"e1720eb32acf411c328af6a8c8f556c94535808e","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"0d59ce2bfc3bb13abe6240335a1bf7b96536d022","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"43d26997d88c4056fce0324e72f62556bc7e8e8d","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"981c845f29838e468a9bfa87f784307193a31297","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"87bfabb3b2f46827639173f143aa43f7cfc0a7e6","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"81278be4eb5f08ba2c68c3055893e61cc03727fe","status":"affected"},{"type":"git","introduced":"2aad40d911eeb7dcac91c669f2762a28134f0eb1","fixed":"9f9967fed9d066ed3dae9372b45ffa4f6fccfeef","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.44","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.4","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.11","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.44"},{"status":"affected","introduced":"6.13","fixed":"6.16.4"}],"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/1096eb63ecfc8df90b70cd068e6de0c2ff204dfd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1720eb32acf411c328af6a8c8f556c94535808e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d59ce2bfc3bb13abe6240335a1bf7b96536d022","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43d26997d88c4056fce0324e72f62556bc7e8e8d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/981c845f29838e468a9bfa87f784307193a31297","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87bfabb3b2f46827639173f143aa43f7cfc0a7e6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81278be4eb5f08ba2c68c3055893e61cc03727fe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f9967fed9d066ed3dae9372b45ffa4f6fccfeef","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39787","url":"https://www.cve.org/CVERecord?id=CVE-2025-39787","licence":"CVE Terms of Use","modified":"2026-10-15T01:08:21.166Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39787","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39787","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.567Z","epss":{"score":0.00178,"percentile":0.07681,"date":"2026-12-01T12:00:22.000Z"}}