{
  "id": "CVE-2025-38596",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38596",
  "published_at": "2025-08-19T17:03:26.445Z",
  "title": "drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code",
  "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/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code\n\nThe object is potentially already gone after the drm_gem_object_put().\nIn general the object should be fully constructed before calling\ndrm_gem_handle_create(), except the debugfs tracking uses a separate\nlock and list and separate flag to denotate whether the object is\nactually initialized.\n\nSince I'm touching this all anyway simplify this by only adding the\nobject to the debugfs when it's ready for that, which allows us to\ndelete that separate flag. panthor_gem_debugfs_bo_rm() already checks\nwhether we've actually been added to the list or this is some error\npath cleanup.\n\nv2: Fix build issues for !CONFIG_DEBUGFS (Adrián)\n\nv3: Add linebreak and remove outdated comment (Liviu)",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:6.16:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= a3707f53eb3f4f3e7a30d720be0885f813d649bb, \u003c 5f2be12442db6a2904e6e31b0e3b5ad5aebf868b",
          "\u003e= a3707f53eb3f4f3e7a30d720be0885f813d649bb, \u003c fe69a391808404977b1f002a6e7447de3de7a88e"
        ],
        "fixed_in": [
          "5f2be12442db6a2904e6e31b0e3b5ad5aebf868b",
          "fe69a391808404977b1f002a6e7447de3de7a88e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.16"
        ],
        "fixed_in": [
          "0",
          "6.16.1",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5f2be12442db6a2904e6e31b0e3b5ad5aebf868b or fe69a391808404977b1f002a6e7447de3de7a88e or later.",
      "Upgrade Linux to 0 or 6.16.1 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
