CVE-2024-56695
Last modified
CVE-2024-56695 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Use dynamic allocation for CU occupancy array in 'kfd_get_cu_occupancy()' The `kfd_get_cu_occupancy` function previously declared a large `cu_occupancy` array as a local variable, which could lead to stack overflows due to excessive stack usage. This commit replaces the static array allocation with dynamic memory allocation using `kcalloc`, thereby reducing the stack size. This change avoids the risk of stack overflows in kernel space, in scenarios where `AMDGPU_MAX_QUEUES` is large. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Use dynamic allocation for CU occupancy array in 'kfd_get_cu_occupancy()' The `kfd_get_cu_occupancy` function previously declared a large `cu_occupancy` array as a local variable, which could lead to stack overflows due to excessive stack usage. This commit replaces the static array allocation with dynamic memory allocation using `kcalloc`, thereby reducing the stack size. This change avoids the risk of stack overflows in kernel space, in scenarios where `AMDGPU_MAX_QUEUES` is large. The allocated memory is freed using `kfree` before the function returns to prevent memory leaks. Fixes the below with gcc W=1: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c: In function ‘kfd_get_cu_occupancy’: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:322:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=] 322 | } | ^
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.12, < 6.12.2 |
References
- https://git.kernel.org/stable/c/6d9f07196389f35a3afebcf1a12c1425725cadddMailing List, Patch
- https://git.kernel.org/stable/c/922f0e00017b09d9d47e3efac008c8b20ed546a0Mailing List, Patch
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-56695?
How severe is CVE-2024-56695?
How do I fix CVE-2024-56695?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-5669The XPlainer – WooCommerce Product FAQ [WooCommerce Accordio…6.4
- CVE-2024-56690In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56691In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56692In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56693In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-56694In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56696In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56697In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56698In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-56699In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-5670The web services of Softnext's products, Mail SQR Expert and…9.8
- CVE-2024-56700In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-56695?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
