CVE-2024-56697

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
28/12/2024
Last modified:
01/10/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info()<br /> <br /> Fix two issues with memory allocation in amdgpu_discovery_get_nps_info()<br /> for mem_ranges:<br /> <br /> - Add a check for allocation failure to avoid dereferencing a null<br /> pointer.<br /> <br /> - As suggested by Christophe, use kvcalloc() for memory allocation,<br /> which checks for multiplication overflow.<br /> <br /> Additionally, assign the output parameters nps_type and range_cnt after<br /> the kvcalloc() call to prevent modifying the output parameters in case<br /> of an error return.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.11 (including) 6.11.11 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.12 (including) 6.12.2 (excluding)