drm/xe: Fix null pointer dereference in devcoredump cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix null pointer dereference in devcoredump cleanup
In xe_devcoredump_snapshot_free(), ss->gt may be NULL when the snapshot was never fully populated (e.g., when cleanup is triggered without a prior capture). Guard the xe_guc_capture_put_matched_nodes() call with IS_ERR_OR_NULL() to prevent a null dereference.
In xe_devcoredump_free(), the deferred work is only queued when a coredump is captured, so guard cancel_work_sync() with a check on coredump->captured.
From the CVE record · Linux
Linux kernel drm/xe devcoredump cleanup can dereference a null pointer when a snapshot was not fully populated, such as when cleanup occurs without a prior capture. The description does not specify an attacker-controlled trigger or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the affected drm/xe code should check their kernel version against the vendor advisory; affected versions are not specified here.