Kernel crash via invalid KFD queue error logging
Published Apr 1, 2025 · Updated May 11, 2026
NULL pointer dereference in Linux 6.12 through 6.13 allows local users to crash the kernel through a crafted KFD queue IOCTL. In kfd_queue_acquire_buffers(), the invalid EOP ring-size error path logs eop_buf_bo->tbo.base.size even when eop_buf_bo is NULL. Reachability requires local low-privileged access to the AMD KFD device, and the bounded consequence is a kernel crash.
Summary
What happened
NULL pointer dereference in Linux 6.12 through 6.13 allows local users to crash the kernel through a crafted KFD queue IOCTL. In kfd_queue_acquire_buffers(), the invalid EOP ring-size error path logs eop_buf_bo->tbo.base.size even when eop_buf_bo is NULL. Reachability requires local low-privileged access to the AMD KFD device, and the bounded consequence is a kernel crash.
The record
- CVE
- CVE-2025-21940
- Published
- Apr 1, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 1, 2025CVE publishedPublication date reported by the CVE source.
- May 11, 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=629568d25fea8ece4f65073f039aeef4e240ab67 <33eb8041c5d6c19d46e7bfd23a031844336afd80
- Affected versionversion=629568d25fea8ece4f65073f039aeef4e240ab67 <c3cbeafb4e0001d9146df50b470885e02664f3c7
- Affected versionversion=629568d25fea8ece4f65073f039aeef4e240ab67 <fd617ea3b79d2116d53f76cdb5a3601c0ba6e42f
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