Skip to content
Heist/ feed
Back to feed
HighFix available

drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code The object is potentially already gone after the drm_gem_object_put(). In general the object should be fully constructed before calling drm_gem_handle_create(), except the debugfs tracking uses a separate lock and list and separate flag to denotate whether the object is actually initialized. Since I'm touching this all anyway simplify this by only adding the object to the debugfs when it's ready for that, which allows us to delete that separate flag. panthor_gem_debugfs_bo_rm() already checks whether we've actually been added to the list or this is some error path cleanup. v2: Fix build issues for !CONFIG_DEBUGFS (Adrián) v3: Add linebreak and remove outdated comment (Liviu)

Products
Kernel
Affected versions
Not specified
Fixed versions
6.16.1
CVEs
CVE-2025-38596
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 14:44 UTC · Revision 1

Source evidence

drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code

core-osv · Original source

Published 19 Aug 2025, 17:03 UTC

In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code The object is potentially already gone after the drm_gem_object_put(). In general the object should be fully constructed before calling drm_gem_handle_create(), except the debugfs tracking uses a separate lock and list and separate flag to denotate whether the object is actually initialized. Since I'm touching this all anyway simplify this by only adding the object to the debugfs when it's ready for that, which allows us to delete that separate flag. panthor_gem_debugfs_bo_rm() already checks whether we've actually been added to the list or this is some error path cleanup. v2: Fix build issues for !CONFIG_DEBUGFS (Adrián) v3: Add linebreak and remove outdated comment (Liviu)

osv:CVE-2025-38596

Kernel

Fixed versions: 6.16.1

Complete source record
{
  "id": "ad64d7754fd9a3d315e9772f914ca71b6293d315ec61d52f53d96f66cc19c3b6",
  "url": "https://osv.dev/vulnerability/CVE-2025-38596",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code The object is potentially already gone after the drm_gem_object_put(). In general the object should be fully constructed before calling drm_gem_handle_create(), except the debugfs tracking uses a separate lock and list and separate flag to denotate whether the object is actually initialized. Since I'm touching this all anyway simplify this by only adding the object to the debugfs when it's ready for that, which allows us to delete that separate flag. panthor_gem_debugfs_bo_rm() already checks whether we've actually been added to the list or this is some error path cleanup. v2: Fix build issues for !CONFIG_DEBUGFS (Adrián) v3: Add linebreak and remove outdated comment (Liviu)",
    "evidence": "osv:CVE-2025-38596",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.16.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-38596",
      "aliases": [
        "CVE-2025-38596"
      ],
      "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": "a3707f53eb3f4f3e7a30d720be0885f813d649bb"
                },
                {
                  "fixed": "5f2be12442db6a2904e6e31b0e3b5ad5aebf868b"
                },
                {
                  "fixed": "fe69a391808404977b1f002a6e7447de3de7a88e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38596.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.16.0"
                },
                {
                  "fixed": "6.16.1"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38596.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.982263302Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5f2be12442db6a2904e6e31b0e3b5ad5aebf868b",
        "https://git.kernel.org/stable/c/fe69a391808404977b1f002a6e7447de3de7a88e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38596.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38596",
        "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/38xxx/CVE-2025-38596.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38596",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496480,
  "published_at": "2025-08-19T17:03:26.445+00:00"
}