CVE-2024-27040
Last modified
CVE-2024-27040 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. 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). EPSS estimates a 0.25% chance of exploitation in the next 30 days.
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)
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.6, < 6.6.23 |
| Linux | Linux Kernel | >= 6.7, < 6.7.11 |
| Linux | Linux Kernel | >= 6.8, < 6.8.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-27040?
How severe is CVE-2024-27040?
How do I fix CVE-2024-27040?
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-27035In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-27036In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-27037In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-27038In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-27039In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-2704A vulnerability classified as critical was found in Tenda AC…8.8
- CVE-2024-27041In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-27042Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-27043In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-27044In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-27045In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-27046In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-27040?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
