{"id":"CVE-2025-39747","aliases":["CVE-2025-39747"],"related":[],"kind":"vulnerability","state":"published","title":"drm/msm: Add error handling for krealloc in metadata setup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm: Add error handling for krealloc in metadata setup\n\nFunction msm_ioctl_gem_info_set_metadata() now checks for krealloc\nfailure and returns -ENOMEM, avoiding potential NULL pointer dereference.\nExplicitly avoids __GFP_NOFAIL due to deadlock risks and allocation constraints.\n\nPatchwork: https://patchwork.freedesktop.org/patch/661235/","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm: Add error handling for krealloc in metadata setup\n\nFunction msm_ioctl_gem_info_set_metadata() now checks for krealloc\nfailure and returns -ENOMEM, avoiding potential NULL pointer dereference.\nExplicitly avoids __GFP_NOFAIL due to deadlock risks and allocation constraints.\n\nPatchwork: https://patchwork.freedesktop.org/patch/661235/","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/msm: Añadir manejo de errores para krealloc en la configuración de metadatos\n\nLa función msm_ioctl_gem_info_set_metadata() ahora comprueba si krealloc falla y devuelve -ENOMEM, evitando la desreferencia potencial de puntero NULL. Evita explícitamente __GFP_NOFAIL debido a riesgos de interbloqueo y restricciones de asignación.\n\nPatchwork: https://patchwork.freedesktop.org/patch/661235/","source":"nvd"}],"published":"2025-09-11T16:52:19.816Z","modified":"2026-10-19T21:10:00.160Z","severity":{"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"},"severities":[{"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-476"],"affected":[{"ranges":[{"type":"git","introduced":"0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300","fixed":"53dc780c1e94ea782d8936b41bfaa83c663702eb","status":"affected"},{"type":"git","introduced":"0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300","fixed":"01e3eda8edc3c4caaa49261d1a56c799b0bd6268","status":"affected"},{"type":"git","introduced":"0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300","fixed":"d5386bcede7b57b193c658dcbb9d22004cde7580","status":"affected"},{"type":"git","introduced":"0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300","fixed":"1c8c354098ea9d4376a58c96ae6b65288a6f15d8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.12","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","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":"3.12","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39747","url":"https://www.cve.org/CVERecord?id=CVE-2025-39747","licence":"CVE Terms of Use","modified":"2026-05-11T21:35:29.849Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39747","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39747","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.546Z","epss":{"score":0.00177,"percentile":0.07575,"date":"2026-12-02T12:00:21.000Z"}}