# CVE-2025-38353: drm/xe: Fix taking invalid lock on wedge

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-07-25T12:47:25.188Z
- Modified: 2026-11-05T21:18:28.450Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

drm/xe: Fix taking invalid lock on wedge

If device wedges on e.g. GuC upload, the submission is not yet enabled
and the state is not even initialized. Protect the wedge call so it does
nothing in this case. It fixes the following splat:

	[] xe 0000:bf:00.0: [drm] device wedged, needs recovery
	[] ------------[ cut here ]------------
	[] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
	[] WARNING: CPU: 48 PID: 312 at kernel/locking/mutex.c:564 __mutex_lock+0x8a1/0xe60
	...
	[] RIP: 0010:__mutex_lock+0x8a1/0xe60
	[]  mutex_lock_nested+0x1b/0x30
	[]  xe_guc_submit_wedge+0x80/0x2b0 [xe]

(As written by CVE List.)

## Affected

- Linux Linux: from dd08ebf6c3525a7ea2186e636df064ea47281987 before a6d81b2d7037ef36163ad16459ed3fd17cb1b596; from dd08ebf6c3525a7ea2186e636df064ea47281987 before 20eec7018e132a023f84ccbdf56b6c5b73d3094f; from dd08ebf6c3525a7ea2186e636df064ea47281987 before 1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d; 6.8 (not affected: before 6.8; from 6.12.36 up to 6.12.*; from 6.15.5 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.8 before 6.12.36; from 6.13 before 6.15.5

## References

- <https://git.kernel.org/stable/c/a6d81b2d7037ef36163ad16459ed3fd17cb1b596> (patch)
- <https://git.kernel.org/stable/c/20eec7018e132a023f84ccbdf56b6c5b73d3094f> (patch)
- <https://git.kernel.org/stable/c/1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d> (patch)

## Sources

- CVE List: [CVE-2025-38353](https://www.cve.org/CVERecord?id=CVE-2025-38353), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38353](https://nvd.nist.gov/vuln/detail/CVE-2025-38353), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38353 · Whole record: https://cve.day/CVE-2025-38353.json · Rebuilt by cve.day 2026-11-25T22:59:01.661Z
