First published: Sat Dec 28 2024(Updated: )
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info() Fix two issues with memory allocation in amdgpu_discovery_get_nps_info() for mem_ranges: - Add a check for allocation failure to avoid dereferencing a null pointer. - As suggested by Christophe, use kvcalloc() for memory allocation, which checks for multiplication overflow. Additionally, assign the output parameters nps_type and range_cnt after the kvcalloc() call to prevent modifying the output parameters in case of an error return.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=6.11<6.11.11 | |
Linux Kernel | >=6.12<6.12.2 | |
debian/linux | 5.10.223-1 5.10.234-1 6.1.129-1 6.1.128-1 6.12.20-1 6.12.21-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-56697 has a moderate severity level due to memory allocation issues that could impact system stability.
To fix CVE-2024-56697, update your Linux kernel to version 6.11.11 or 6.12.2 or later.
CVE-2024-56697 affects Linux kernel versions from 6.11 to 6.11.11 and from 6.12 to 6.12.2.
CVE-2024-56697 impacts the AMD GPU driver in the Linux kernel.
CVE-2024-56697 is a memory allocation vulnerability in the amdgpu driver.