Files
vuln-cve/data/2023/53xxx/CVE-2023-53844.json
T

180 lines
9.7 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2023-53844",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2025-12-09T01:27:17.827Z",
"datePublished": "2025-12-09T01:30:06.863Z",
"dateUpdated": "2026-08-05T09:16:22.259Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T09:16:22.259Z"
},
"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."
}
],
"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."
}
]
}
],
"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": "bfa3357ef9abc9d56a2910222d2deeb9f15c91ff",
"lessThan": "af4e0ce2af8a8f0ff3b89702a1e18d8ec2c4a834",
"status": "affected",
"versionType": "git"
},
{
"version": "bfa3357ef9abc9d56a2910222d2deeb9f15c91ff",
"lessThan": "f037f6038736bd038ddb9c72de979a08cc1ee3b5",
"status": "affected",
"versionType": "git"
},
{
"version": "bfa3357ef9abc9d56a2910222d2deeb9f15c91ff",
"lessThan": "4a5b37ea6797d7a53e6dd004aa37e149f40199ce",
"status": "affected",
"versionType": "git"
},
{
"version": "bfa3357ef9abc9d56a2910222d2deeb9f15c91ff",
"lessThan": "a590f03d8de7c4cb7ce4916dc7f2fd10711faabe",
"status": "affected",
"versionType": "git"
}
]
},
{
"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.14",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.14",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.15.121",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.40",
"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.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"
}
]
}
]
}
],
"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"
}
],
"title": "drm/ttm: Don't leak a resource on swapout move error",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
}
}