CVE Catalog

CVE-2025-21842

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.23%

14th percentile - higher than 14% of all known CVEs

Summary

In the amdkfd driver in the Linux kernel, there is a bug where gang_ctx_bo is not properly freed when user queue initialization fails. The function amdgpu_amdkfd_free_gtt_mem() expects a pointer to pointer (void**), but void* was passed, leading to errors during dereferencing.

Risk Assessment

The bug can lead to improper memory management, potentially causing memory leaks or data corruption, which may destabilize the system or allow an attacker to escalate privileges.

Recommendation

Apply the Linux kernel patch that fixes the freeing of gang_ctx_bo by correctly passing a pointer to pointer (void**).

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS