Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-56695

7.8 · HIGH
Published Dec 28, 2024 linux CWE-787 EPSS 0.22% (12th pctl)

Overview

CVE-2024-56695 is a high-severity vulnerability affecting linux linux_kernel. It was published on December 28, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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 | }

| ^

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 6.12, < 6.12.2 Affected

Frequently Asked Questions

What is CVE-2024-56695?

CVE-2024-56695 is a high-severity vulnerability affecting linux linux_kernel. It was published on December 28, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-56695?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-56695?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-56695?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-56695 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.