What’s Vulnerable › Vulnerabilities
CVE-2025-21995: drm/sched: Fix fence reference count leak
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-04-03 · updated 2026-06-17
Description
In the Linux kernel, the following vulnerability has been resolved: drm/sched: Fix fence reference count leak The last_scheduled fence leaks when an entity is being killed and adding the cleanup callback fails. Decrement the reference count of prev when dma_fence_add_callback() fails, ensuring proper balance. [phasta: add git tag info for stable kernel]
Affected products
- Linux kernel: from 6.2 before 6.6.85; from 6.7 before 6.12.21; from 6.13 before 6.13.9; 6.14-rc1, 6.14-rc2, 6.14-rc3, 6.14-rc4, 6.14-rc5, 6.14-rc6 (+1) — fixed in 6.12.21, 6.13.9, 6.6.85
How to fix
Upgrade to a fixed version: Linux kernel 6.12.21, 6.13.9, 6.6.85. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1135a9431160575466ea9ac37ebd756ecbe35fff
- https://git.kernel.org/stable/c/35399c84dcedd6d31448fb9e1336ef52673f2882
- https://git.kernel.org/stable/c/a952f1ab696873be124e31ce5ef964d36bce817f
- https://git.kernel.org/stable/c/c76bd3c99293834de7d1dca5de536616d5655e38
Get alerted when CVE-2025-21995 or the next vulnerability affects your stack