Kernel panic via amdkfd teardown race
Published Dec 8, 2025 · Updated May 11, 2026
Race condition in the Linux kernel allows local users to crash the system via a KGD interrupt during amdkfd teardown. amdgpu_amdkfd_device_fini_sw can free the KFD device after node cleanup while KGD interrupts remain active, leaving kgd2kfd_interrupt to dereference freed state. Reachability requires local access and AMD KFD hardware while teardown overlaps an interrupt; the documented consequence is a kernel panic.
Summary
What happened
Race condition in the Linux kernel allows local users to crash the system via a KGD interrupt during amdkfd teardown. amdgpu_amdkfd_device_fini_sw can free the KFD device after node cleanup while KGD interrupts remain active, leaving kgd2kfd_interrupt to dereference freed state. Reachability requires local access and AMD KFD hardware while teardown overlaps an interrupt; the documented consequence is a kernel panic.
The record
- CVE
- CVE-2025-40310
- Published
- Dec 8, 2025
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 8, 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.5
- Affected versionversion=74c5b85da75475c73a8f040397610fbfcc2c3e78 <2f89a2d15550b653caaeeab7ab68c4d7583fd4fe
- Affected versionversion=74c5b85da75475c73a8f040397610fbfcc2c3e78 <93f8d67ef8b50334a26129df4da5a4cb60ad4090
- Affected versionversion=74c5b85da75475c73a8f040397610fbfcc2c3e78 <99d7181bca34e96fbf61bdb6844918bdd4df2814
- Affected versionversion=74c5b85da75475c73a8f040397610fbfcc2c3e78 <bc9e789053abe463f8cf74eee5fc2f157c11a79f
What conditions does exploitation require?
What is affected?
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