Linux Kernel up to 6.12.15/6.13.3/6.14-rc2 amdkfd amdgpu_amdkfd_free_gtt_mem type confusion

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.0 | $0-$5k | 0.00 |
Summary
A vulnerability described as problematic has been identified in Linux Kernel up to 6.12.15/6.13.3/6.14-rc2. This issue affects the function amdgpu_amdkfd_free_gtt_mem of the component amdkfd. Such manipulation leads to type confusion.
This vulnerability is referenced as CVE-2025-21842. No exploit is available.
Upgrading the affected component is recommended.
Details
A vulnerability was found in Linux Kernel up to 6.12.15/6.13.3/6.14-rc2 and classified as critical. Affected by this issue is the function amdgpu_amdkfd_free_gtt_mem of the component amdkfd. The manipulation with an unknown input leads to a type confusion vulnerability. Using CWE to declare the problem leads to CWE-843. The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is shared for download at git.kernel.org. This vulnerability is handled as CVE-2025-21842 since 12/29/2024. The exploitation is known to be easy. No form of authentication is required for exploitation. There are known technical details, but no exploit is available. The current price for an exploit might be approx. USD $0-$5k (estimation calculated on 02/16/2026).
The vulnerability scanner Nessus provides a plugin with the ID 250066 (Linux Distros Unpatched Vulnerability : CVE-2025-21842), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 6.12.16, 6.13.4 or 6.14-rc3 eliminates this vulnerability. Applying the patch ae5ab1c1ae504f622cc1ff48830a9ed48428146d/091a68c58c1bbd2ab7d05d1b32c1306394ec691d/a33f7f9660705fb2ecf3467b2c48965564f392ce is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (250066) and CERT Bund (WID-SEC-2025-0499). Once again VulDB remains the best source for vulnerability data.
Affected
- Google Container-Optimized OS
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- RESF Rocky Linux
- SolarWinds Security Event Manager
- Open Source Linux Kernel
- Dell Secure Connect Gateway
Product
Type
Vendor
Name
Version
- 6.12.0
- 6.12.1
- 6.12.2
- 6.12.3
- 6.12.4
- 6.12.5
- 6.12.6
- 6.12.7
- 6.12.8
- 6.12.9
- 6.12.10
- 6.12.11
- 6.12.12
- 6.12.13
- 6.12.14
- 6.12.15
- 6.13.0
- 6.13.1
- 6.13.2
- 6.13.3
- 6.14-rc1
- 6.14-rc2
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.2VulDB Meta Temp Score: 7.0
VulDB Base Score: 8.8
VulDB Temp Score: 8.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 5.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Type confusionCWE: CWE-843
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Partially
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 250066
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-21842
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: Kernel 6.12.16/6.13.4/6.14-rc3
Patch: ae5ab1c1ae504f622cc1ff48830a9ed48428146d/091a68c58c1bbd2ab7d05d1b32c1306394ec691d/a33f7f9660705fb2ecf3467b2c48965564f392ce
Timeline
12/29/2024 🔍03/07/2025 🔍
03/07/2025 🔍
02/16/2026 🔍
Sources
Vendor: kernel.orgAdvisory: git.kernel.org
Status: Confirmed
CVE: CVE-2025-21842 (🔍)
GCVE (CVE): GCVE-0-2025-21842
GCVE (VulDB): GCVE-100-298940
CERT Bund: WID-SEC-2025-0499 - Linux Kernel: Mehrere Schwachstellen
Entry
Created: 03/07/2025 11:06Updated: 02/16/2026 22:47
Changes: 03/07/2025 11:06 (59), 08/17/2025 15:31 (2), 10/29/2025 22:50 (12), 02/16/2026 22:47 (7)
Complete: 🔍
Committer: mitr
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.