CVE-2024-56697: drm/amdgpu: Fix the memory allocation issue in amdgpu_discovery_get_nps_info()

Published Dec 28, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: Fix the memory allocation issue in amdgpudiscoverygetnpsinfo()

Fix two issues with memory allocation in amdgpudiscoverygetnpsinfo() for memranges:

- 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 npstype and rangecnt after the kvcalloc() call to prevent modifying the output parameters in case of an error return.

Affected Software

3 affected componentsFixes available
Linux Linux kernel>=6.11<6.11.11
Linux Linux kernel>=6.12<6.12.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Dec 28, 2024
CVE Published
via MITRE·09:46 AM
Data Sourced
via MITRE·09:46 AM
Description
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 1, 2025
Data Sourced
via Ubuntu·01:06 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-56697?

CVE-2024-56697 has a moderate severity level due to memory allocation issues that could impact system stability.

2

How do I fix CVE-2024-56697?

To fix CVE-2024-56697, update your Linux kernel to version 6.11.11 or 6.12.2 or later.

3

What versions of the Linux kernel are affected by CVE-2024-56697?

CVE-2024-56697 affects Linux kernel versions from 6.11 to 6.11.11 and from 6.12 to 6.12.2.

4

What component is impacted by CVE-2024-56697?

CVE-2024-56697 impacts the AMD GPU driver in the Linux kernel.

5

What type of vulnerability is CVE-2024-56697?

CVE-2024-56697 is a memory allocation vulnerability in the amdgpu driver.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203