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
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.0$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.2
VulDB 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: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Type confusion
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 250066
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-21842

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 6.12.16/6.13.4/6.14-rc3
Patch: ae5ab1c1ae504f622cc1ff48830a9ed48428146d/091a68c58c1bbd2ab7d05d1b32c1306394ec691d/a33f7f9660705fb2ecf3467b2c48965564f392ce

Timelineinfo

12/29/2024 🔍
03/07/2025 +68 days 🔍
03/07/2025 +0 days 🔍
02/16/2026 +346 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: 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

Entryinfo

Created: 03/07/2025 11:06
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!