drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.12.75, Kernel 6.18.14, Kernel 6.19.4 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges() amdgpu_discovery_get_nps_info() internally allocates memory for ranges using kvcalloc(), which may use vmalloc() for large allocation. Using kfree() to release vmalloc memory will lead to a memory corruption. Use kvfree() to safely handle both kmalloc and vmalloc allocations. Compile tested only. Issue found using a prototype static analysis tool and code review.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.11 <6.12.75, >=6.13 <6.18.14, >=6.19 <6.19.4, >=b194d21b9bcc15b50df1bc3ff7428e51c2918a6f <16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e, >=b194d21b9bcc15b50df1bc3ff7428e51c2918a6f <9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5, >=b194d21b9bcc15b50df1bc3ff7428e51c2918a6f <f441538893eba6347b983f2904819ca6c99da65e, =6.11, >=b194d21b9bcc15b50df1bc3ff7428e51c2918a6f <0c44d61945c4a80775292d96460aa2f22e62f86c | 6.12.75, 6.18.14, 6.19.4, 16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e, 9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5, f441538893eba6347b983f2904819ca6c99da65e, 0c44d61945c4a80775292d96460aa2f22e62f86c |
| linux-kernel: Kernel | >=6.11.0 <6.12.75, >=6.13.0 <6.18.14, >=6.19.0 <6.19.4 | 6.12.75, 6.18.14, 6.19.4 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket