{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54254","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-12-30T12:06:44.515Z","datePublished":"2025-12-30T12:15:50.163Z","dateUpdated":"2026-08-05T09:18:27.491Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T09:18:27.491Z"},"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)"}],"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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/ttm/ttm_bo.c"],"versions":[{"version":"403797925768d9fa870f5b1ebcd20016b397083b","lessThan":"7738335d73d0686ec8995e0448e5d1b48cffb2a4","status":"affected","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","lessThan":"e9c44738cb1f537b177cc1beabcf6913690460cd","status":"affected","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","lessThan":"6aea0032380bbb1efebd598ad733d16925167921","status":"affected","versionType":"git"},{"version":"403797925768d9fa870f5b1ebcd20016b397083b","lessThan":"e8188c461ee015ba0b9ab2fc82dbd5ebca5a5532","status":"affected","versionType":"git"},{"version":"6c68fbafb9cd13e13476043fd9f6e10f792f685a","status":"affected","versionType":"git"},{"version":"5.14.6","lessThan":"5.15","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/ttm/ttm_bo.c"],"versions":[{"version":"5.15","status":"affected"},{"version":"0","lessThan":"5.15","status":"unaffected","versionType":"semver"},{"version":"5.15.124","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.43","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.4.5","lessThanOrEqual":"6.4.*","status":"unaffected","versionType":"semver"},{"version":"6.5","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"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"}],"title":"drm/ttm: Don't leak a resource on eviction error","x_generator":{"engine":"bippy-1.2.0"}}}}