{"id":"CVE-2024-42275","state":"PUBLISHED","title":"drm/client: Fix error code in drm_client_buffer_vmap_local()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/client: Fix error code in drm_client_buffer_vmap_local()\n\nThis function accidentally returns zero/success on the failure path.\nIt leads to locking issues and an uninitialized *map_copy in the\ncaller.","publishedAt":"2024-08-17T08:54:28.902Z","updatedAt":"2026-08-05T11:36:15.323Z","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":"b4b0193e83cb987143583e2b4011b35331f429bd","status":"affected","lessThan":"c0f412961653237f52e2f16ee8747fb330bcf074","versionType":"git"},{"version":"b4b0193e83cb987143583e2b4011b35331f429bd","status":"affected","lessThan":"b5fbf924f125ba3638cfdc21c0515eb7e76264ca","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_client.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.10.4","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/drm_client.c"]}],"references":["https://git.kernel.org/stable/c/c0f412961653237f52e2f16ee8747fb330bcf074","https://git.kernel.org/stable/c/b5fbf924f125ba3638cfdc21c0515eb7e76264ca"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/42xxx/CVE-2024-42275.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-42275","state":"PUBLISHED","datePublished":"2024-08-17T08:54:28.902Z","dateUpdated":"2026-08-05T11:36:15.323Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-30T07:40:12.261Z"},"containers":{"cna":{"title":"drm/client: Fix error code in drm_client_buffer_vmap_local()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/client: Fix error code in drm_client_buffer_vmap_local()\n\nThis function accidentally returns zero/success on the failure path.\nIt leads to locking issues and an uninitialized *map_copy in the\ncaller."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b4b0193e83cb987143583e2b4011b35331f429bd","status":"affected","lessThan":"c0f412961653237f52e2f16ee8747fb330bcf074","versionType":"git"},{"version":"b4b0193e83cb987143583e2b4011b35331f429bd","status":"affected","lessThan":"b5fbf924f125ba3638cfdc21c0515eb7e76264ca","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_client.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.10.4","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/drm_client.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c0f412961653237f52e2f16ee8747fb330bcf074"},{"url":"https://git.kernel.org/stable/c/b5fbf924f125ba3638cfdc21c0515eb7e76264ca"}],"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 - The vulnerable path is reached only through local interfaces — writes/mmap to the fbdev device node or console output driving the damage worker, plus DRM GEM allocations to induce the vmap/pin failure. There is no remote or adjacent-network input.\nAC:L - Both preconditions are under the attacker's control: the failing `drm_gem_vmap()` is reliably produced by exhausting system memory or VRAM through the render node, and the damage blit is triggered on demand by writing to `/dev/fb0`. No condition depends on state the attacker cannot influence.\nPR:L - An ordinary local account with the usual graphics access (fbdev/DRM render node, e.g. the video/render/graphics groups on desktops, Android and embedded systems) suffices; no CAP_SYS_ADMIN or root is required anywhere on the path.\nUI:N - The attacker drives the entire sequence from its own process — allocate to force the vmap failure, then dirty the framebuffer; the damage worker also fires automatically on console updates. No victim action is needed.\nS:U - The corruption stays within the kernel's own security authority; there is no VM, IOMMU, or sandbox boundary crossed by the failed mapping or the reservation-lock imbalance.\nC:H - The uninitialized `iosys_map` write and the released-but-still-assumed-held reservation lock give memory corruption plus a race window where a BO can be moved/evicted mid-blit, which is leverageable for disclosure of arbitrary kernel memory.\nI:H - A loop of `memcpy` writes of fully userspace-controlled shadow-framebuffer bytes lands at an uninitialized kernel pointer (or MMIO address), which with stack grooming is an arbitrary-write primitive suitable for control-flow hijack.\nA:H - The write through the garbage pointer causes an immediate oops/panic (a guaranteed NULL-deref on `INIT_STACK_ALL_ZERO` builds), and the extra `dma_resv_unlock()` corrupts ww_mutex state, leading to warnings, stolen locks and deadlocks."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:36:15.323Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.10.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-42275","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:11:58.568874Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:33:31.871Z"}}]}}}