{"id":"CVE-2025-39747","summary":"drm/msm: Add error handling for krealloc in metadata setup","details":"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/","modified":"2026-04-02T12:48:07.904495Z","published":"2025-09-11T16:52:19.816Z","related":["SUSE-SU-2025:03601-1","SUSE-SU-2025:03633-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3725-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39747.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01e3eda8edc3c4caaa49261d1a56c799b0bd6268"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c8c354098ea9d4376a58c96ae6b65288a6f15d8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/53dc780c1e94ea782d8936b41bfaa83c663702eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d5386bcede7b57b193c658dcbb9d22004cde7580"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39747.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39747"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300"},{"fixed":"53dc780c1e94ea782d8936b41bfaa83c663702eb"},{"fixed":"01e3eda8edc3c4caaa49261d1a56c799b0bd6268"},{"fixed":"d5386bcede7b57b193c658dcbb9d22004cde7580"},{"fixed":"1c8c354098ea9d4376a58c96ae6b65288a6f15d8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39747.json"}}],"schema_version":"1.7.5"}