CVE-2025-38596
published high CVSS 3.1 · 7.8drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa3707f53eb3f4f3e7a30d720be0885f813d649bb to < 5f2be12442db6a2904e6e31b0e3b5ad5aebf868b · a3707f53eb3f4f3e7a30d720be0885f813d649bb to < fe69a391808404977b1f002a6e7447de3de7a88e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.16.1 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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)
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached through the PANTHOR_BO_CREATE ioctl (plus a concurrent GEM_CLOSE) on the local DRM render device node /dev/dri/renderD*, which requires local system access rather than any network path. AC:L - Exploitation is a race between BO_CREATE and GEM_CLOSE that the attacker fully controls from two threads on the same fd, and DRM handle numbers are predictable via the idr allocator, so the window can be won reliably. PR:L - The BO_CREATE ioctl is DRM_RENDER_ALLOW, reachable by any unprivileged local user able to open the Panthor render node (render/graphics group on Android/embedded/desktop); no root or capability is needed. UI:N - The attacker triggers the ioctl race entirely on its own; no action by any other user is required. S:U - The use-after-free corrupts kernel heap within the same kernel security authority, with no crossing of a VM, IOMMU, or sandbox boundary. C:H - A use-after-free lets the attacker reallocate the freed object slot with attacker-influenced or security-relevant data, which per kernel UAF guidance is treated as enabling arbitrary/high-impact information disclosure. I:H - The stale bo->debugfs.flags write corrupts freed heap memory that can be reallocated to another structure, giving a controlled-timing UAF write primitive leveragable for arbitrary write / control-flow hijack. A:H - Writing to freed memory reliably corrupts the kernel heap and causes oops/panic, a high availability impact typical of any use-after-free.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a3707f53eb3f4f3e7a30d720be0885f813d649bb to < 5f2be12442db6a2904e6e31b0e3b5ad5aebf868b (affected · git)a3707f53eb3f4f3e7a30d720be0885f813d649bb to < fe69a391808404977b1f002a6e7447de3de7a88e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.16.1 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c9c8ac3bef19e61486f8db2bf6ef862dab1328cb328e1fb4711b70cad129709a
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record