{
  "id": "CVE-2025-39740",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39740",
  "published_at": "2025-09-11T16:52:14.638Z",
  "title": "drm/xe/migrate: prevent potential UAF",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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)",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 270172f64b114451876c1b68912653e72ab99f38, \u003c 7e46fa64a4b94208563c3a5bf1d7f4346f94abea",
          "\u003e= 270172f64b114451876c1b68912653e72ab99f38, \u003c 145832fbdd17b1d77ffd6cdd1642259e101d1b7e"
        ],
        "fixed_in": [
          "7e46fa64a4b94208563c3a5bf1d7f4346f94abea",
          "145832fbdd17b1d77ffd6cdd1642259e101d1b7e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.16"
        ],
        "fixed_in": [
          "0",
          "6.16.2",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 7e46fa64a4b94208563c3a5bf1d7f4346f94abea or 145832fbdd17b1d77ffd6cdd1642259e101d1b7e or later.",
      "Upgrade Linux to 0 or 6.16.2 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
