{"id":"CVE-2024-38549","aliases":["CVE-2024-38549"],"related":[],"kind":"vulnerability","state":"published","title":"drm/mediatek: Add 0 size check to mtk_drm_gem_obj","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: Add 0 size check to mtk_drm_gem_obj\n\nAdd a check to mtk_drm_gem_init if we attempt to allocate a GEM object\nof 0 bytes. Currently, no such check exists and the kernel will panic if\na userspace application attempts to allocate a 0x0 GBM buffer.\n\nTested by attempting to allocate a 0x0 GBM buffer on an MT8188 and\nverifying that we now return EINVAL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: Add 0 size check to mtk_drm_gem_obj\n\nAdd a check to mtk_drm_gem_init if we attempt to allocate a GEM object\nof 0 bytes. Currently, no such check exists and the kernel will panic if\na userspace application attempts to allocate a 0x0 GBM buffer.\n\nTested by attempting to allocate a 0x0 GBM buffer on an MT8188 and\nverifying that we now return EINVAL.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: drm/mediatek: Agregar verificación de tamaño 0 a mtk_drm_gem_obj Agregar una verificación a mtk_drm_gem_init si intentamos asignar un objeto GEM de 0 bytes. Actualmente, no existe tal verificación y el kernel entrará en pánico si una aplicación de espacio de usuario intenta asignar un búfer GBM 0x0. Probado intentando asignar un búfer GBM 0x0 en un MT8188 y verificando que ahora devolvemos EINVAL.","source":"nvd"}],"published":"2024-06-19T13:35:22.042Z","modified":"2026-06-17T07:40:31.483Z","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":[],"affected":[{"ranges":[{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"79078880795478d551a05acc41f957700030d364","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"be34a1b351ea7faeb15dde8c44fe89de3980ae67","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"d17b75ee9c2e44d3a3682c4ea5ab713ea6073350","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"0e3b6f9123726858cac299e1654e3d20424cabe4","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"13562c2d48c9ee330de1077d00146742be368f05","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"af26ea99019caee1500bf7e60c861136c0bf8594","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"9489951e3ae505534c4013db4e76b1b5a3151ac7","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"fb4aabdb1b48c25d9e1ee28f89440fd2ce556405","status":"affected"},{"type":"git","introduced":"119f5173628aa7a0c3cf9db83460d40709e8241d","fixed":"1e4350095e8ab2577ee05f8c3b044e661b5af9a0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"4.19.316","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.278","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.219","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.161","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","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.7","fixed":"4.19.316"},{"status":"affected","introduced":"4.20","fixed":"5.4.278"},{"status":"affected","introduced":"5.5","fixed":"5.10.219"},{"status":"affected","introduced":"5.11","fixed":"5.15.161"},{"status":"affected","introduced":"5.16","fixed":"6.1.93"},{"status":"affected","introduced":"6.2","fixed":"6.6.33"},{"status":"affected","introduced":"6.7","fixed":"6.8.12"},{"status":"affected","introduced":"6.9","fixed":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/79078880795478d551a05acc41f957700030d364","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be34a1b351ea7faeb15dde8c44fe89de3980ae67","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d17b75ee9c2e44d3a3682c4ea5ab713ea6073350","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0e3b6f9123726858cac299e1654e3d20424cabe4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13562c2d48c9ee330de1077d00146742be368f05","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af26ea99019caee1500bf7e60c861136c0bf8594","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9489951e3ae505534c4013db4e76b1b5a3151ac7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb4aabdb1b48c25d9e1ee28f89440fd2ce556405","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e4350095e8ab2577ee05f8c3b044e661b5af9a0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:14:57.159Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38549","url":"https://www.cve.org/CVERecord?id=CVE-2024-38549","licence":"CVE Terms of Use","modified":"2026-05-11T20:18:49.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38549","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38549","licence":"Public domain","modified":"2026-06-17T07:40:31.483Z"}],"updatedAt":"2026-11-25T22:58:42.010Z","epss":{"score":0.00324,"percentile":0.1794,"date":"2026-11-30T12:00:22.000Z"}}