{"id":"CVE-2023-54254","state":"PUBLISHED","title":"drm/ttm: Don't leak a resource on eviction error","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/ttm: Don't leak a resource on eviction error\n\nOn eviction errors other than -EMULTIHOP we were leaking a resource.\nFix.\n\nv2:\n- Avoid yet another goto (Andi Shyti)","publishedAt":"2025-12-30T12:15:50.163Z","updatedAt":"2026-10-15T21:41:43.208Z","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":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"7738335d73d0686ec8995e0448e5d1b48cffb2a4","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"e9c44738cb1f537b177cc1beabcf6913690460cd","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"6aea0032380bbb1efebd598ad733d16925167921","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532","versionType":"git"},{"version":"6c68fbafb9cd13e13476043fd9f6e10f792f685a","status":"affected","versionType":"git"},{"version":"5.14.6","status":"affected","lessThan":"5.15","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/ttm/ttm_bo.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.124","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.43","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.5","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","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/ttm/ttm_bo.c"]}],"references":["https://git.kernel.org/stable/c/7738335d73d0686ec8995e0448e5d1b48cffb2a4","https://git.kernel.org/stable/c/e9c44738cb1f537b177cc1beabcf6913690460cd","https://git.kernel.org/stable/c/6aea0032380bbb1efebd598ad733d16925167921","https://git.kernel.org/stable/c/e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54254.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54254","state":"PUBLISHED","datePublished":"2025-12-30T12:15:50.163Z","dateUpdated":"2026-10-15T21:41:43.208Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:44.515Z"},"containers":{"cna":{"title":"drm/ttm: Don't leak a resource on eviction error","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/ttm: Don't leak a resource on eviction error\n\nOn eviction errors other than -EMULTIHOP we were leaking a resource.\nFix.\n\nv2:\n- Avoid yet another goto (Andi Shyti)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"7738335d73d0686ec8995e0448e5d1b48cffb2a4","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"e9c44738cb1f537b177cc1beabcf6913690460cd","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"6aea0032380bbb1efebd598ad733d16925167921","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","status":"affected","lessThan":"e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532","versionType":"git"},{"version":"6c68fbafb9cd13e13476043fd9f6e10f792f685a","status":"affected","versionType":"git"},{"version":"5.14.6","status":"affected","lessThan":"5.15","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/ttm/ttm_bo.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.124","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.43","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.5","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","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/ttm/ttm_bo.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7738335d73d0686ec8995e0448e5d1b48cffb2a4"},{"url":"https://git.kernel.org/stable/c/e9c44738cb1f537b177cc1beabcf6913690460cd"},{"url":"https://git.kernel.org/stable/c/6aea0032380bbb1efebd598ad733d16925167921"},{"url":"https://git.kernel.org/stable/c/e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532"}],"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 DRM ioctls (GEM create / command submission / buffer validation) on a local device node such as /dev/dri/renderD128. There is no network-facing consumer of ttm_bo_evict().\nAC:L - The attacker controls both preconditions: it fills VRAM/GTT with its own BOs to force the eviction path, then delivers a signal to its own ioctl thread so the interruptible wait inside the driver move callback returns -ERESTARTSYS, a non-EMULTIHOP error that leaks the resource. This is deterministic and can be repeated in a tight loop.\nPR:L - An ordinary unprivileged local user needs only an open FD on a DRM render node, which is granted to the render/video group on desktops, to every GPU-using app on Android and ChromeOS, and to containers with GPU passthrough. No capability or root access is involved.\nUI:N - The attacking process drives allocation, eviction and signal delivery entirely on its own. No action by any other user is required.\nS:U - The leaked resource, the dangling res->bo pointer, and all subsequent corruption remain within the kernel's own security authority. No hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - The orphaned ttm_resource retains a dangling res->bo to a freed ttm_buffer_object that later LRU walkers dereference without any validity check, giving a use-after-free whose freed-object contents the attacker can groom via heap spray to read kernel memory through the bo->base.resv / bo->bdev / bo->resource pointer chains.\nI:H - The same use-after-free yields write and control-flow primitives: ttm_bo_evict_swapout_allowable() calls dma_resv_trylock() through an attacker-controlled bo->base.resv pointer and indirect-calls bo->bdev->funcs->eviction_valuable() read from reclaimed slab memory.\nA:H - Each triggered error permanently leaks a VRAM/GTT range and an LRU entry, so repeated invocation exhausts GPU memory device-wide and denies service to all users including the display server; additionally the never-empty LRU makes ttm_resource_manager_evict_all() spin forever at suspend/unload, and the use-after-free crashes the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:18:27.491Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.43"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.4.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14.6"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-54254","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:39:48.494148Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:43.208Z"}}]}}}