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-27040

4.7 · MEDIUM
Published May 1, 2024 linux CWE-476 EPSS 0.25% (16th pctl)

Overview

CVE-2024-27040 is a medium-severity vulnerability affecting linux linux_kernel. It was published on May 1, 2024 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. 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/amd/display: Add 'replay' NULL check in 'edp_set_replay_allow_active()'

In the first if statement, we're checking if 'replay' is NULL. But in

the second if statement, we're not checking if 'replay' is NULL again

before calling replay->funcs->replay_set_power_opt().

if (replay == NULL && force_static)

return false;

...

if (link->replay_settings.replay_feature_enabled &&

replay->funcs->replay_set_power_opt) {

replay->funcs->replay_set_power_opt(replay, *power_opts, panel_inst);

link->replay_settings.replay_power_opt_active = *power_opts;

}

If 'replay' is NULL, this will cause a null pointer dereference.

Fixes the below found by smatch:

drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_edp_panel_control.c:895 edp_set_replay_allow_active() error: we previously assumed 'replay' could be null (see line 887)

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.6, < 6.6.23 Affected

Frequently Asked Questions

What is CVE-2024-27040?

CVE-2024-27040 is a medium-severity vulnerability affecting linux linux_kernel. It was published on May 1, 2024 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

How severe is CVE-2024-27040?

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. 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-27040?

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

CyberStrike's AI-powered security agents can automatically detect CVE-2024-27040 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.