{"id":"CVE-2025-39740","summary":"drm/xe/migrate: prevent potential UAF","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe/migrate: prevent potential UAF\n\nIf we hit the error path, the previous fence (if there is one) has\nalready been put() prior to this, so doing a fence_wait could lead to\nUAF. Tweak the flow to do to the put() until after we do the wait.\n\n(cherry picked from commit 9b7ca35ed28fe5fad86e9d9c24ebd1271e4c9c3e)","modified":"2026-04-02T12:48:07.841033Z","published":"2025-09-11T16:52:14.638Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39740.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/145832fbdd17b1d77ffd6cdd1642259e101d1b7e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e46fa64a4b94208563c3a5bf1d7f4346f94abea"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39740.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39740"},{"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":"270172f64b114451876c1b68912653e72ab99f38"},{"fixed":"7e46fa64a4b94208563c3a5bf1d7f4346f94abea"},{"fixed":"145832fbdd17b1d77ffd6cdd1642259e101d1b7e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39740.json"}}],"schema_version":"1.7.5"}