Skip to content
Heist/ feed
Back to feed
HighFix available

drm/xe/migrate: prevent potential UAF

Type: advisorySources: OSV

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)

Products
Kernel
Affected versions
Not specified
Fixed versions
6.16.2
CVEs
CVE-2025-39740
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:42 UTC · Revision 1

Source evidence

drm/xe/migrate: prevent potential UAF

core-osv · Original source

Published 11 Sept 2025, 16:52 UTC

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)

osv:CVE-2025-39740

Kernel

Fixed versions: 6.16.2

Complete source record
{
  "id": "25e5558d193f58a6920c32524b3a438e42afb81b26c40e2c02eb9bc351cf7a83",
  "url": "https://osv.dev/vulnerability/CVE-2025-39740",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/xe/migrate: prevent potential UAF",
    "summary": "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)",
    "evidence": "osv:CVE-2025-39740",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.16.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-39740",
      "aliases": [
        "CVE-2025-39740"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "270172f64b114451876c1b68912653e72ab99f38"
                },
                {
                  "fixed": "7e46fa64a4b94208563c3a5bf1d7f4346f94abea"
                },
                {
                  "fixed": "145832fbdd17b1d77ffd6cdd1642259e101d1b7e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39740.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.16.0"
                },
                {
                  "fixed": "6.16.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39740.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.499854427Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/145832fbdd17b1d77ffd6cdd1642259e101d1b7e",
        "https://git.kernel.org/stable/c/7e46fa64a4b94208563c3a5bf1d7f4346f94abea",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39740.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39740",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39740.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39740",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493122,
  "published_at": "2025-09-11T16:52:14.638+00:00"
}