Bug 2350587 (CVE-2025-21842) - CVE-2025-21842 kernel: amdkfd: properly free gang_ctx_bo when failed to init user queue
Summary: CVE-2025-21842 kernel: amdkfd: properly free gang_ctx_bo when failed to init ...
Keywords:
Status: NEW
Alias: CVE-2025-21842
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-07 10:01 UTC by OSIDB Bzimport
Modified: 2025-03-07 15:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-07 10:01:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.