drm/xe/migrate: prevent potential UAF
Published Sep 11, 2025
7.8
HIGHCVSS 3.1
EPSS 0.16%
Description
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)
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 6.16StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<6.16
- Version 6.16.2StatusunaffectedConstraints<=6.16.*
- Version 6.17StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 6.16 · < 6.16.2
- 6.17
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (8)
- https://access.redhat.com/security/cve/CVE-2025-39740 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2394640 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-28971 Advisory
- https://git.kernel.org/stable/c/145832fbdd17b1d77ffd6cdd1642259e101d1b7e Patch
- https://git.kernel.org/stable/c/7e46fa64a4b94208563c3a5bf1d7f4346f94abea Patch
- https://lore.kernel.org/linux-cve-announce/2025091138-CVE-2025-39740-6b46@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2025-39740
- https://www.cve.org/CVERecord?id=CVE-2025-39740
Change history (0)
No recorded changes yet.