{"id":"CVE-2023-53844","state":"PUBLISHED","title":"drm/ttm: Don't leak a resource on swapout move error","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/ttm: Don't leak a resource on swapout move error\n\nIf moving the bo to system for swapout failed, we were leaking\na resource. Fix.","publishedAt":"2025-12-09T01:30:06.863Z","updatedAt":"2026-08-05T09:16:22.259Z","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":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"af4e0ce2af8a8f0ff3b89702a1e18d8ec2c4a834","versionType":"git"},{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"f037f6038736bd038ddb9c72de979a08cc1ee3b5","versionType":"git"},{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"4a5b37ea6797d7a53e6dd004aa37e149f40199ce","versionType":"git"},{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"a590f03d8de7c4cb7ce4916dc7f2fd10711faabe","versionType":"git"}],"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.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.40","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/af4e0ce2af8a8f0ff3b89702a1e18d8ec2c4a834","https://git.kernel.org/stable/c/f037f6038736bd038ddb9c72de979a08cc1ee3b5","https://git.kernel.org/stable/c/4a5b37ea6797d7a53e6dd004aa37e149f40199ce","https://git.kernel.org/stable/c/a590f03d8de7c4cb7ce4916dc7f2fd10711faabe"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53844.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53844","state":"PUBLISHED","datePublished":"2025-12-09T01:30:06.863Z","dateUpdated":"2026-08-05T09:16:22.259Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-09T01:27:17.827Z"},"containers":{"cna":{"title":"drm/ttm: Don't leak a resource on swapout move error","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/ttm: Don't leak a resource on swapout move error\n\nIf moving the bo to system for swapout failed, we were leaking\na resource. Fix."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"af4e0ce2af8a8f0ff3b89702a1e18d8ec2c4a834","versionType":"git"},{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"f037f6038736bd038ddb9c72de979a08cc1ee3b5","versionType":"git"},{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"4a5b37ea6797d7a53e6dd004aa37e149f40199ce","versionType":"git"},{"version":"bfa3357ef9abc9d56a2910222d2deeb9f15c91ff","status":"affected","lessThan":"a590f03d8de7c4cb7ce4916dc7f2fd10711faabe","versionType":"git"}],"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.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.40","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/af4e0ce2af8a8f0ff3b89702a1e18d8ec2c4a834"},{"url":"https://git.kernel.org/stable/c/f037f6038736bd038ddb9c72de979a08cc1ee3b5"},{"url":"https://git.kernel.org/stable/c/4a5b37ea6797d7a53e6dd004aa37e149f40199ce"},{"url":"https://git.kernel.org/stable/c/a590f03d8de7c4cb7ce4916dc7f2fd10711faabe"}],"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 access to a DRM device node (/dev/dri/renderD* or card*) via GEM allocation/submission ioctls that drive TTM swapout; there is no network-facing component.\nAC:L - The attacker controls both preconditions — swapout is forced deterministically by allocating TTM pages past ttm_pages_limit (ttm_tt_populate loops on ttm_global_swapout), and the move failure is forced by keeping the GTT BO's fences unsignaled past the 15-second ttm_bo_wait_ctx timeout in amdgpu/radeon/nouveau, or by inducing -ENOMEM in dma_resv_reserve_fences under the same memory pressure. The sequence is repeatable at will, leaking one dangling resource per attempt.\nPR:L - Requires only an open DRM render node, which is granted to any logged-in desktop user, Android graphics-group app, or container with /dev/dri passed through; no capabilities and no root are needed.\nUI:N - The attacker performs all steps itself — BO allocation, GPU submission and memory pressure — with no action from any other user or victim process.\nS:U - The corruption is confined to the kernel's own TTM resource-manager structures within the same security authority; no VM, IOMMU or sandbox boundary is crossed.\nC:H - The orphaned ttm_resource stays linked on the SYSTEM manager's LRU with a stale res->bo, so ttm_device_swapout, ttm_mem_evict_first and ttm_lru_bulk_move_tail read from a freed ttm_buffer_object whose slab the attacker can groom — a controllable use-after-free read primitive into kernel memory.\nI:H - The same dangling entry yields writes: ttm_bo_get_unless_zero performs an atomic increment into the freed object, list_del_init/list_bulk_move_tail splice attacker-influenced LRU pointers, and a groomed fake BO reaches the bo->bdev->funcs->swap_notify() and bo->destroy indirect calls, giving control-flow hijack potential.\nA:H - Beyond the unbounded kernel memory and man->usage accounting leak, the stale LRU entry oopses on the next swapout or eviction walk, and ttm_device_clear_lru_dma_mappings spins forever on it while holding bdev->lru_lock (kref_get_unless_zero fails, then continue without list_del_init), producing a soft lockup and system hang."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:16:22.259Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.121"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.4.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}