# CVE-2025-38410: drm/msm: Fix a fence leak in submit error path

- 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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-25T13:20:15.184Z
- Modified: 2026-06-17T09:16:48.307Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

drm/msm: Fix a fence leak in submit error path

In error paths, we could unref the submit without calling
drm_sched_entity_push_job(), so msm_job_free() will never get
called.  Since drm_sched_job_cleanup() will NULL out the
s_fence, we can use that to detect this case.

Patchwork: https://patchwork.freedesktop.org/patch/653584/

(As written by CVE List.)

## Affected

- Linux Linux: from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 5deab0fa6cfd0cd7def17598db15ceb84f950584; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 201eba5c9652a900c0b248070263f9acd3735689; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before fe2695b2f63bd77e0e03bc0fc779164115bb4699; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 0eaa495b3d5710e5ba72051d2e01bb28292c625c; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 0dc817f852e5f8ec8501d19ef7dcc01affa181d0; from 0cf6c71d70d8aa39b8fd0e39c9009602a0e0d300 before 5d319f75ccf7f0927425a7545aa1a22b3eedc189; 3.12 (not affected: before 3.12; from 5.15.187 up to 5.15.*; from 6.1.144 up to 6.1.*; from 6.6.97 up to 6.6.*; from 6.12.37 up to 6.12.*; from 6.15.6 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 3.12 before 5.15.187; from 5.16 before 6.1.144; from 6.2 before 6.6.97; from 6.7 before 6.12.37; from 6.13 before 6.15.6; 6.16
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/5deab0fa6cfd0cd7def17598db15ceb84f950584> (patch)
- <https://git.kernel.org/stable/c/201eba5c9652a900c0b248070263f9acd3735689> (patch)
- <https://git.kernel.org/stable/c/fe2695b2f63bd77e0e03bc0fc779164115bb4699> (patch)
- <https://git.kernel.org/stable/c/0eaa495b3d5710e5ba72051d2e01bb28292c625c> (patch)
- <https://git.kernel.org/stable/c/0dc817f852e5f8ec8501d19ef7dcc01affa181d0> (patch)
- <https://git.kernel.org/stable/c/5d319f75ccf7f0927425a7545aa1a22b3eedc189> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

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

---

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