CVE-2024-27040: drm/amd/display: Add 'replay' NULL check in 'edp_set_replay_allow_active()'

Published May 1, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Add 'replay' NULL check in 'edpsetreplayallowactive()'

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->replaysetpoweropt().

if (replay == NULL && forcestatic) return false;

...

if (link->replaysettings.replayfeatureenabled && replay->funcs->replaysetpoweropt) { replay->funcs->replaysetpoweropt(replay, poweropts, panelinst); link->replaysettings.replaypoweroptactive = poweropts; }

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/linkedppanelcontrol.c:895 edpsetreplayallowactive() error: we previously assumed 'replay' could be null (see line 887)

Affected Software

4 affected componentsFixes available
Linux Linux kernel>=6.6<6.6.23
Linux Linux kernel>=6.7<6.7.11
Linux Linux kernel>=6.8<6.8.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

May 1, 2024
CVE Published
via MITRE·12:54 PM
Data Sourced
via MITRE·12:54 PM
Description
Jun 8, 2024
Data Sourced
via Launchpad·01:11 AM
Description
Dec 1, 2024
Data Sourced
via Ubuntu·05:27 AM
RemedyDescriptionSeverityAffected Software
May 2, 2025
Data Sourced
via Debian·02:23 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27040?

CVE-2024-27040 has a severity rating that reflects a potential impact on the integrity and availability of the Linux kernel, particularly within the AMD display driver.

2

How do I fix CVE-2024-27040?

To mitigate CVE-2024-27040, update your Linux kernel to versions 5.10.223-1, 5.10.226-1, 6.1.119-1, 6.1.123-1, or 6.12.10-1.

3

Which versions of Linux are affected by CVE-2024-27040?

CVE-2024-27040 affects specific versions of the Linux kernel including those prior to the patched versions indicated.

4

What could happen if CVE-2024-27040 is exploited?

Exploiting CVE-2024-27040 could potentially lead to denial of service or unexpected behavior in systems using the affected versions of the Linux kernel.

5

Is there a workaround for CVE-2024-27040?

Currently, the recommended action for CVE-2024-27040 is to apply the necessary updates rather than relying on workarounds.

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