CVE-2024-27040
drm/amd/display: Add 'replay' NULL check in 'edp_set_replay_allow_active()'
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f610c46771ef1047e46d61807aa7c69cd29e63d8; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < e7cadd5d3a8ffe334d0229ba9eda4290138d56e7; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < d0e94f4807ff0df66cf447d6b4bbb8ac830e99c3; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f6aed043ee5d75b3d1bfc452b1a9584b63c8f76b
- Anyone running Linux 6.6
Vulnerability facts
- Affected
- Linux >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f610c46771ef1047e46d61807aa7c69cd29e63d8; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < e7cadd5d3a8ffe334d0229ba9eda4290138d56e7; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < d0e94f4807ff0df66cf447d6b4bbb8ac830e99c3; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f6aed043ee5d75b3d1bfc452b1a9584b63c8f76b; Linux 6.6
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-476
- Modified
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)
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f610c46771ef1047e46d61807aa7c69cd29e63d8; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < e7cadd5d3a8ffe334d0229ba9eda4290138d56e7; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < d0e94f4807ff0df66cf447d6b4bbb8ac830e99c3; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f6aed043ee5d75b3d1bfc452b1a9584b63c8f76b | — | cvelist |
| Linux | 6.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-27040. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-27040.md Affected: Linux >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f610c46771ef1047e46d61807aa7c69cd29e63d8; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < e7cadd5d3a8ffe334d0229ba9eda4290138d56e7; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < d0e94f4807ff0df66cf447d6b4bbb8ac830e99c3; >= c7ddc0a800bc9f681a18c3b… Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-27040 being exploited?
There is no confirmed exploitation: CVE-2024-27040 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-27040?
Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-27040?
Linux >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f610c46771ef1047e46d61807aa7c69cd29e63d8; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < e7cadd5d3a8ffe334d0229ba9eda4290138d56e7; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < d0e94f4807ff0df66cf447d6b4bbb8ac830e99c3; >= c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, < f6aed043ee5d75b3d1bfc452b1a9584b63c8f76b; Linux 6.6.
Is there a fix for CVE-2024-27040?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-27040?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.