CVE-2025-39740Use After Free in Linux

CWE-416Use After Free5 documents5 sources
Severity
7.8HIGHNVD
EPSS
0.0%
top 94.20%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 11

Description

In the Linux kernel, the following vulnerability has been resolved: drm/xe/migrate: prevent potential UAF If we hit the error path, the previous fence (if there is one) has already been put() prior to this, so doing a fence_wait could lead to UAF. Tweak the flow to do to the put() until after we do the wait. (cherry picked from commit 9b7ca35ed28fe5fad86e9d9c24ebd1271e4c9c3e)

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages3 packages

NVDlinux/linux_kernel6.166.16.2+1
CVEListV5linux/linux270172f64b114451876c1b68912653e72ab99f387e46fa64a4b94208563c3a5bf1d7f4346f94abea+2
debiandebian/linux

Patches

🔴Vulnerability Details

2
OSV
CVE-2025-39740: In the Linux kernel, the following vulnerability has been resolved: drm/xe/migrate: prevent potential UAF If we hit the error path, the previous fence2025-09-11
GHSA
GHSA-p96w-fc3f-mj48: In the Linux kernel, the following vulnerability has been resolved: drm/xe/migrate: prevent potential UAF If we hit the error path, the previous fen2025-09-11

📋Vendor Advisories

2
Red Hat
kernel: drm/xe/migrate: prevent potential UAF2025-09-11
Debian
CVE-2025-39740: linux - In the Linux kernel, the following vulnerability has been resolved: drm/xe/migr...2025
CVE-2025-39740 — Use After Free in Linux | cvebase