CVE-2025-38596
Linux Ubuntu vulnerability analysis and mitigation

Overview

A use-after-free (UAF) vulnerability has been identified in the Linux kernel's drm/panthor subsystem, specifically in the panthorgemcreatewithhandle() debugfs code. The vulnerability was discovered and disclosed on August 19, 2025, affecting various Linux kernel versions. The issue occurs when the object is potentially accessed after drmgemobject_put() is called (NVD).

Technical details

The vulnerability stems from a timing issue where the object might be accessed after being freed through drmgemobject_put(). The debugfs tracking uses a separate lock and list, along with a separate flag to indicate whether the object is actually initialized. The CVSS v3 Base Score is 5.5, indicating moderate severity (Red Hat).

Impact

This vulnerability could potentially lead to use-after-free conditions in the Linux kernel's DRM (Direct Rendering Manager) subsystem, which could result in system crashes, memory corruption, or potential privilege escalation (NVD).

Mitigation and workarounds

The issue has been resolved by simplifying the object initialization process, ensuring that objects are only added to debugfs when they are ready. The fix involves modifying the panthorgemdebugfsborm() function which now checks whether the object has actually been added to the list or if this is an error path cleanup (NVD).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management