CWE
476
Advisory Published
Updated

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

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • What component is impacted by CVE-2024-56697?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203