CVE-2025-21842 Details
Description
In the Linux kernel, the following vulnerability has been resolved: amdkfd: properly free gang_ctx_bo when failed to init user queue The destructor of a gtt bo is declared as void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj); Which takes void** as the second parameter. GCC allows passing void* to the function because void* can be implicitly casted to any other types, so it can pass compiling. However, passing this void* parameter into the function's execution process(which expects void** and dereferencing void**) will result in errors.
A vulnerability in the Linux kernel's amdkfd component relates to improper memory management of gang context buffer objects. The issue arises when the user queue initialization fails, leading to a failure to correctly free the associated graphics translation table (GTT) memory. The vulnerability is rooted in the function 'amdgpu_amdkfd_free_gtt_mem', which is designed to handle GTT memory objects but can encounter errors when void pointers are improperly passed and dereferenced. This mismanagement can potentially lead to memory leaks or corruption.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/091a68c58c1bbd2ab7d05d1b32c1306394ec691d | kernel.org | Patch |
| https://git.kernel.org/stable/c/a33f7f9660705fb2ecf3467b2c48965564f392ce | kernel.org | Patch |
| https://git.kernel.org/stable/c/ae5ab1c1ae504f622cc1ff48830a9ed48428146d | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.12, < 6.12.16 >= 6.13, < 6.13.4 6.14 rc1 6.14 rc2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 29, 2025 | Initial Analysis | [email protected] |
| Mar 7, 2025 | New CVE Received | kernel.org |