CVE-2025-21842
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
Linux kernel versions
6.12
and later are affected. Fixed in
6.12.16,
6.13.4,
6.14
and their respective stable series.
References
The following references provide additional information about CVE-2025-21842 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/091a68c58c1bbd2ab7d05d1b32c1306394ec691d
-
PatchKernel patch commithttps://git.kernel.org/stable/c/a33f7f9660705fb2ecf3467b2c48965564f392ce
-
PatchKernel patch commithttps://git.kernel.org/stable/c/ae5ab1c1ae504f622cc1ff48830a9ed48428146d
Frequently asked questions
-
What is CVE-2025-21842?
CVE-2025-21842 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 6.12 onward and has been patched in 6.12.16, 6.13.4 and 6.14. CVE-2025-21842 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-21842?
CVE-2025-21842 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2025-21842?
Yes — CVE-2025-21842 has been patched. Fixed versions include 6.12.16, 6.13.4 and 6.14. If you are running Linux kernel 6.12 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-21842 actively exploited?
No — CVE-2025-21842 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.