{"id":"CVE-2025-21995","summary":"drm/sched: Fix fence reference count leak","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/sched: Fix fence reference count leak\n\nThe last_scheduled fence leaks when an entity is being killed and adding\nthe cleanup callback fails.\n\nDecrement the reference count of prev when dma_fence_add_callback()\nfails, ensuring proper balance.\n\n[phasta: add git tag info for stable kernel]","modified":"2026-04-02T12:45:18.752109Z","published":"2025-04-03T07:18:59.178Z","related":["MGASA-2025-0142","MGASA-2025-0146","SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20206-1","SUSE-SU-2025:20270-1","SUSE-SU-2025:20283-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21995.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1135a9431160575466ea9ac37ebd756ecbe35fff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35399c84dcedd6d31448fb9e1336ef52673f2882"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a952f1ab696873be124e31ce5ef964d36bce817f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c76bd3c99293834de7d1dca5de536616d5655e38"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21995.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21995"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2fdb8a8f07c2f1353770a324fd19b8114e4329ac"},{"fixed":"c76bd3c99293834de7d1dca5de536616d5655e38"},{"fixed":"1135a9431160575466ea9ac37ebd756ecbe35fff"},{"fixed":"35399c84dcedd6d31448fb9e1336ef52673f2882"},{"fixed":"a952f1ab696873be124e31ce5ef964d36bce817f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21995.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}