{"id":"CVE-2024-56697","published":"2024-12-28T09:46:20Z","modified":"2026-05-11T20:57:30Z","title":"drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info()\n\nFix two issues with memory allocation in amdgpu_discovery_get_nps_info()\nfor mem_ranges:\n\n - Add a check for allocation failure to avoid dereferencing a null\n   pointer.\n\n - As suggested by Christophe, use kvcalloc() for memory allocation,\n   which checks for multiplication overflow.\n\nAdditionally, assign the output parameters nps_type and range_cnt after\nthe kvcalloc() call to prevent modifying the output parameters in case\nof an error return.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.003,"percentile":0.15063,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/d14bea4e094871226ea69772d69dab8b7b5f4915","tags":[]},{"url":"https://git.kernel.org/stable/c/e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197","tags":[]},{"url":"https://git.kernel.org/stable/c/a1144da794adedb9447437c57d69add56494309d","tags":[]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":3.01},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < d14bea4e094871226ea69772d69dab8b7b5f4915",">= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < e8f1dbaa0437eba4e8c1d6a6d81eca2e2ce3d197",">= b194d21b9bcc15b50df1bc3ff7428e51c2918a6f, < a1144da794adedb9447437c57d69add56494309d"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:59:01.596023Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53345","exploited":false,"provenance":"source"}}