CVE-2024-49876CWE-416

CVE-2024-49876

High · published October 21, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
14.7
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

drm/xe: fix UAF around queue destruction

We currently do stuff like queuing the final destruction step on a

random system wq, which will outlive the driver instance. With bad

timing we can teardown the driver with one or more work workqueue still

being alive leading to various UAF splats. Add a fini step to ensure

user queues are properly torn down. At this point GuC should already be

nuked so queue itself should no longer be referenced from hw pov.

v2 (Matt B)

- Looks much safer to use a waitqueue and then just wait for the

xa_array to become empty before triggering the drain.

(cherry picked from commit 861108666cc0e999cffeab6aff17b662e68774e3)

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00244 · 14.7th percentile
Weakness
CWE-416 · Use After Free
Published
2024-10-21T22:15Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.8, < 6.10.146.10.14
linux/linux_kernel≥ 6.11, < 6.11.36.11.3
linux/linux_kernelall versions—
References (3)
EPSS history
Timeline
  • 21 OCT 18:01Z
    drm/xe: fix UAF around queue destruction
    cvelistv5