{"id":"CVE-2024-46709","state":"PUBLISHED","title":"drm/vmwgfx: Fix prime with external buffers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: Fix prime with external buffers\n\nMake sure that for external buffers mapping goes through the dma_buf\ninterface instead of trying to access pages directly.\n\nExternal buffers might not provide direct access to readable/writable\npages so to make sure the bo's created from external dma_bufs can be\nread dma_buf interface has to be used.\n\nFixes crashes in IGT's kms_prime with vgem. Regular desktop usage won't\ntrigger this due to the fact that virtual machines will not have\nmultiple GPUs but it enables better test coverage in IGT.","publishedAt":"2024-09-13T06:33:41.392Z","updatedAt":"2026-08-05T11:38:04.182Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"65674218b43f2dd54587ab2b06560e17c30d8b41","status":"affected","lessThan":"9a9716bbbf3dd6b6cbefba3abcc89af8b72631f4","versionType":"git"},{"version":"b32233accefff1338806f064fb9b62cf5bc0609f","status":"affected","lessThan":"5c12391ee1ab59cb2f3be3f1f5e6d0fc0c2dc854","versionType":"git"},{"version":"b32233accefff1338806f064fb9b62cf5bc0609f","status":"affected","lessThan":"50f1199250912568606b3778dc56646c10cb7b04","versionType":"git"},{"version":"2cdb71c975a10b8774fcd199f16f9ea88948de50","status":"affected","versionType":"git"},{"version":"6.6.29","status":"affected","lessThan":"6.6.49","versionType":"semver"},{"version":"6.8.8","status":"affected","lessThan":"6.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/vmwgfx/vmwgfx_blit.c","drivers/gpu/drm/vmwgfx/vmwgfx_drv.h","drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.6.49","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.8","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/vmwgfx/vmwgfx_blit.c","drivers/gpu/drm/vmwgfx/vmwgfx_drv.h","drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c"]}],"references":["https://git.kernel.org/stable/c/9a9716bbbf3dd6b6cbefba3abcc89af8b72631f4","https://git.kernel.org/stable/c/5c12391ee1ab59cb2f3be3f1f5e6d0fc0c2dc854","https://git.kernel.org/stable/c/50f1199250912568606b3778dc56646c10cb7b04"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/46xxx/CVE-2024-46709.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-46709","state":"PUBLISHED","datePublished":"2024-09-13T06:33:41.392Z","dateUpdated":"2026-08-05T11:38:04.182Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-09-11T15:12:18.252Z"},"containers":{"cna":{"title":"drm/vmwgfx: Fix prime with external buffers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/vmwgfx: Fix prime with external buffers\n\nMake sure that for external buffers mapping goes through the dma_buf\ninterface instead of trying to access pages directly.\n\nExternal buffers might not provide direct access to readable/writable\npages so to make sure the bo's created from external dma_bufs can be\nread dma_buf interface has to be used.\n\nFixes crashes in IGT's kms_prime with vgem. Regular desktop usage won't\ntrigger this due to the fact that virtual machines will not have\nmultiple GPUs but it enables better test coverage in IGT."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"65674218b43f2dd54587ab2b06560e17c30d8b41","status":"affected","lessThan":"9a9716bbbf3dd6b6cbefba3abcc89af8b72631f4","versionType":"git"},{"version":"b32233accefff1338806f064fb9b62cf5bc0609f","status":"affected","lessThan":"5c12391ee1ab59cb2f3be3f1f5e6d0fc0c2dc854","versionType":"git"},{"version":"b32233accefff1338806f064fb9b62cf5bc0609f","status":"affected","lessThan":"50f1199250912568606b3778dc56646c10cb7b04","versionType":"git"},{"version":"2cdb71c975a10b8774fcd199f16f9ea88948de50","status":"affected","versionType":"git"},{"version":"6.6.29","status":"affected","lessThan":"6.6.49","versionType":"semver"},{"version":"6.8.8","status":"affected","lessThan":"6.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/vmwgfx/vmwgfx_blit.c","drivers/gpu/drm/vmwgfx/vmwgfx_drv.h","drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.6.49","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.8","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/vmwgfx/vmwgfx_blit.c","drivers/gpu/drm/vmwgfx/vmwgfx_drv.h","drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9a9716bbbf3dd6b6cbefba3abcc89af8b72631f4"},{"url":"https://git.kernel.org/stable/c/5c12391ee1ab59cb2f3be3f1f5e6d0fc0c2dc854"},{"url":"https://git.kernel.org/stable/c/50f1199250912568606b3778dc56646c10cb7b04"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires opening the vmwgfx DRM device node and issuing local ioctls (PRIME_FD_TO_HANDLE, ADDFB2, atomic modeset/DIRTYFB/VMW_PRESENT_READBACK). There is no network-reachable path into drivers/gpu/drm/vmwgfx.\nAC:L - The attacker performs every step deterministically — create/export an external dma-buf, import it into vmwgfx, build a framebuffer, and trigger the CPU blit via a modeset or present-readback; there is no race or memory-layout condition outside the attacker's control.\nPR:L - Only local unprivileged access to /dev/dri/card0 is needed; PRIME import is DRM_RENDER_ALLOW (no auth), and DRM master is granted automatically to the first opener of a master-less node, which any seat/video-group user obtains without root.\nUI:N - The attacking process creates the external dma-buf, imports it, adds the framebuffer and drives the modeset itself. No action by another user or administrator is required.\nS:U - The invalid page mappings and memcpy corruption stay inside the guest kernel's own security authority; this is a guest DRM driver bug, not a hypervisor or IOMMU boundary crossing.\nC:H - vmw_bo_cpu_blit_line() kmap_atomic()s attacker-influenced, non-CPU-mappable page pointers derived from the imported sg table and memcpys from them into the display surface's buffer, which userspace can read back via VMW_PRESENT_READBACK — disclosing arbitrary kernel memory.\nI:H - In the readback direction the external bo is the memcpy destination, so attacker-controlled framebuffer bytes are written through those bogus page pointers into unrelated kernel memory, giving a kernel write primitive.\nA:H - The maintainer states the change \"fixes crashes in IGT's kms_prime with vgem\"; dereferencing invalid page pointers under kmap_atomic (preemption and page faults disabled) reliably oopses or panics the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:38:04.182Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.29","versionEndExcluding":"6.6.49"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.10.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-29T15:00:04.048988Z","id":"CVE-2024-46709","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-29T15:00:18.143Z"}}]}}}