{"id":"CVE-2025-21842","published":"2025-03-07T09:10:00Z","modified":"2026-08-05T11:54:51Z","title":"amdkfd: properly free gang_ctx_bo when failed to init user queue","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\namdkfd: properly free gang_ctx_bo when failed to init user queue\n\nThe destructor of a gtt bo is declared as\nvoid amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj);\nWhich takes void** as the second parameter.\n\nGCC allows passing void* to the function because void* can be implicitly\ncasted to any other types, so it can pass compiling.\n\nHowever, passing this void* parameter into the function's\nexecution process(which expects void** and dereferencing void**)\nwill result in errors.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0035,"percentile":0.21042,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ae5ab1c1ae504f622cc1ff48830a9ed48428146d","tags":[]},{"url":"https://git.kernel.org/stable/c/091a68c58c1bbd2ab7d05d1b32c1306394ec691d","tags":[]},{"url":"https://git.kernel.org/stable/c/a33f7f9660705fb2ecf3467b2c48965564f392ce","tags":[]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":4.21},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= fb91065851cd5f2735348c5f3eddeeca3d7c2973, < ae5ab1c1ae504f622cc1ff48830a9ed48428146d",">= fb91065851cd5f2735348c5f3eddeeca3d7c2973, < 091a68c58c1bbd2ab7d05d1b32c1306394ec691d",">= fb91065851cd5f2735348c5f3eddeeca3d7c2973, < a33f7f9660705fb2ecf3467b2c48965564f392ce"]},{"vendor":"Linux","product":"Linux","versions":["6.12"]}],"euvd":{"id":"EUVD-2025-7593","exploited":false,"provenance":"source"}}