Menu

Star on GitHub · 3.2k

CVE-2024-26656

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix use-after-free bug The bug can be triggered by sending a single amdgpu_gem_userptr_ioctl to the AMDGPU DRM driv…

Published Apr 2, 2024CWE-416EPSS 0.24%

Overview

CVE-2024-26656 is a high-severity vulnerability. It was published on April 2, 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/amdgpu: fix use-after-free bug

The bug can be triggered by sending a single amdgpu_gem_userptr_ioctl

to the AMDGPU DRM driver on any ASICs with an invalid address and size.

The bug was reported by Joonkyo Jung <[email protected]>.

For example the following code:

static void Syzkaller1(int fd)

{

struct drm_amdgpu_gem_userptr arg;

int ret;

arg.addr = 0xffffffffffff0000;

arg.size = 0x80000000; /*2 Gb*/

arg.flags = 0x7;

ret = drmIoctl(fd, 0xc1186451/*amdgpu_gem_userptr_ioctl*/, &arg);

}

Due to the address and size are not valid there is a failure in

amdgpu_hmm_register->mmu_interval_notifier_insert->__mmu_interval_notifier_insert->

check_shl_overflow, but we even the amdgpu_hmm_register failure we still call

amdgpu_hmm_unregister into amdgpu_gem_object_free which causes access to a bad address.

The following stack is below when the issue is reproduced when Kazan is enabled:

[ +0.000014] Hardware name:

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. 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.

Frequently asked questions

What is CVE-2024-26656?

CVE-2024-26656 is a high-severity vulnerability. It was published on April 2, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-26656?

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-26656?

Check the references section for vendor advisories, patches, and mitigation guidance. 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-26656?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-26656 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all