{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-49876", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-10-21T12:17:06.020Z", "datePublished": "2024-10-21T18:01:16.098Z", "dateUpdated": "2026-08-05T11:40:19.265Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:40:19.265Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe: fix UAF around queue destruction\n\nWe currently do stuff like queuing the final destruction step on a\nrandom system wq, which will outlive the driver instance. With bad\ntiming we can teardown the driver with one or more work workqueue still\nbeing alive leading to various UAF splats. Add a fini step to ensure\nuser queues are properly torn down. At this point GuC should already be\nnuked so queue itself should no longer be referenced from hw pov.\n\nv2 (Matt B)\n - Looks much safer to use a waitqueue and then just wait for the\n xa_array to become empty before triggering the drain.\n\n(cherry picked from commit 861108666cc0e999cffeab6aff17b662e68774e3)" } ], "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 exec-queue create/destroy paths are reached only through DRM ioctls (`XE_EXEC_QUEUE_CREATE`/`XE_EXEC_QUEUE_DESTROY`) and fd close on the local device node `/dev/dri/renderD128`. No network or adjacent-network exposure exists.\nAC:L - The attacker fully controls the side of the race that creates the danger — a create/destroy loop keeps an unsynchronized `system_wq` fini work item outstanding essentially continuously, so no timing window must be won. Device unbind/remove (VF teardown on multi-tenant GPU hosts, eGPU hot-remove, driver reload) is a routine event after which the UAF is near-deterministic rather than a narrow race.\nPR:L - Both ioctls are marked `DRM_RENDER_ALLOW` with no capability check, so any local user with render-node access (default for desktop/logind sessions, and for any app on Android/embedded GPU stacks) can create and destroy exec queues. No root or CAP_SYS_ADMIN is needed.\nUI:N - The attacker's own process (queue destroy loop plus fd close) drives the vulnerable path, and the co-occurring device removal happens autonomously in realistic deployments — SR-IOV VF teardown by the hypervisor management stack, PCI hot-remove, or automated driver rebind — with no victim action required.\nS:U - The use-after-free corrupts kernel heap objects belonging to the same kernel security authority that the attacker is already interacting with. There is no VM, IOMMU, or sandbox boundary crossed.\nC:H - The stale worker reads a freed `xe_device`/`xe_guc` slab object that the attacker can reallocate and control, and follows pointers out of it (`guc_to_xe()`, `ge->q`, LRC/BO chains), enabling disclosure of arbitrary reallocated kernel memory.\nI:H - The worker performs numerous writes into the freed allocation — `mutex_lock()`, `xa_erase()`, GuC ID bitmap release, DRM scheduler entity/sched list teardown, `kfree()` of an attacker-influenced pointer — which is a classic heap-spray-to-arbitrary-write primitive; on module unload the work function pointer itself dangles into freed module text, allowing control-flow hijack.\nA:H - Even unweaponized, the bug produces the \"various UAF splats\" described by the author — KASAN reports, oopses, and panics from dereferencing the freed device, GuC, and scheduler state — resulting in a full kernel crash." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "drivers/gpu/drm/xe/xe_device.c", "drivers/gpu/drm/xe/xe_device_types.h", "drivers/gpu/drm/xe/xe_guc_submit.c", "drivers/gpu/drm/xe/xe_guc_types.h" ], "versions": [ { "version": "dd08ebf6c3525a7ea2186e636df064ea47281987", "lessThan": "272b0e78874586d6ccae04079d75b27b47705544", "status": "affected", "versionType": "git" }, { "version": "dd08ebf6c3525a7ea2186e636df064ea47281987", "lessThan": "421c74670b0f9d5c007f1276d3647aa58f407fde", "status": "affected", "versionType": "git" }, { "version": "dd08ebf6c3525a7ea2186e636df064ea47281987", "lessThan": "2d2be279f1ca9e7288282d4214f16eea8a727cdb", "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/xe/xe_device.c", "drivers/gpu/drm/xe/xe_device_types.h", "drivers/gpu/drm/xe/xe_guc_submit.c", "drivers/gpu/drm/xe/xe_guc_types.h" ], "versions": [ { "version": "6.8", "status": "affected" }, { "version": "0", "lessThan": "6.8", "status": "unaffected", "versionType": "semver" }, { "version": "6.10.14", "lessThanOrEqual": "6.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.11.3", "lessThanOrEqual": "6.11.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12", "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": "6.8", "versionEndExcluding": "6.10.14" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.8", "versionEndExcluding": "6.11.3" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.8", "versionEndExcluding": "6.12" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/272b0e78874586d6ccae04079d75b27b47705544" }, { "url": "https://git.kernel.org/stable/c/421c74670b0f9d5c007f1276d3647aa58f407fde" }, { "url": "https://git.kernel.org/stable/c/2d2be279f1ca9e7288282d4214f16eea8a727cdb" } ], "title": "drm/xe: fix UAF around queue destruction", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "metrics": [ { "other": { "type": "ssvc", "content": { "id": "CVE-2024-49876", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "version": "2.0.3", "timestamp": "2024-10-22T13:46:17.394123Z" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-10-22T13:48:51.208Z" } } ] } }