Kernel crash via incorrect GTT pointer free
Published Mar 7, 2025 · Updated Aug 5, 2026
Incorrect pointer handling in Linux kernel amdkfd allows local users to crash the kernel through a crafted queue-creation request. In kfd_process_queue_manager.c, the queue-init failure path passes gang_ctx_bo as void * to amdgpu_amdkfd_free_gtt_mem(), which dereferences it as void **. A local user with render-group access to /dev/kfd can trigger the path; the invalid dereference causes an oops or panic on SMAP-enabled systems and permits kernel-memory corruption when the fixed address is user-mapped on systems without SMAP or PAN.
Summary
What happened
Incorrect pointer handling in Linux kernel amdkfd allows local users to crash the kernel through a crafted queue-creation request. In kfd_process_queue_manager.c, the queue-init failure path passes gang_ctx_bo as void * to amdgpu_amdkfd_free_gtt_mem(), which dereferences it as void **. A local user with render-group access to /dev/kfd can trigger the path; the invalid dereference causes an oops or panic on SMAP-enabled systems and permits kernel-memory corruption when the fixed address is user-mapped on systems without SMAP or PAN.
The record
- CVE
- CVE-2025-21842
- Published
- Mar 7, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 7, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.12
- Affected versionversion=fb91065851cd5f2735348c5f3eddeeca3d7c2973 <091a68c58c1bbd2ab7d05d1b32c1306394ec691d
- Affected versionversion=fb91065851cd5f2735348c5f3eddeeca3d7c2973 <a33f7f9660705fb2ecf3467b2c48965564f392ce
- Affected versionversion=fb91065851cd5f2735348c5f3eddeeca3d7c2973 <ae5ab1c1ae504f622cc1ff48830a9ed48428146d
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo