{"id":"CVE-2025-39740","aliases":["CVE-2025-39740"],"related":[],"kind":"vulnerability","state":"published","title":"drm/xe/migrate: prevent potential UAF","summary":"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)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/xe/migrate: prevenir UAF potencial\n\nSi alcanzamos la ruta de error, la anterior fence (si hay una) ya ha sido put() antes de esto, por lo que realizar un fence_wait podría llevar a UAF. Ajustar el flujo para que el put() se realice después de la espera.\n\n(extraído del commit 9b7ca35ed28fe5fad86e9d9c24ebd1271e4c9c3e)","source":"nvd"}],"published":"2025-09-11T16:52:14.638Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"270172f64b114451876c1b68912653e72ab99f38","fixed":"7e46fa64a4b94208563c3a5bf1d7f4346f94abea","status":"affected"},{"type":"git","introduced":"270172f64b114451876c1b68912653e72ab99f38","fixed":"145832fbdd17b1d77ffd6cdd1642259e101d1b7e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/7e46fa64a4b94208563c3a5bf1d7f4346f94abea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/145832fbdd17b1d77ffd6cdd1642259e101d1b7e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39740","url":"https://www.cve.org/CVERecord?id=CVE-2025-39740","licence":"CVE Terms of Use","modified":"2026-08-05T12:04:57.846Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39740","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39740","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.543Z","epss":{"score":0.00167,"percentile":0.06192,"date":"2026-12-02T12:00:21.000Z"}}