CVE-2024-27040
drm/amd/display: Add 'replay' NULL check in 'edp_set_replay_allow_active()'
Reported by linux · Published May 1, 2024
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)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | e7cadd5d3a8ffe334d0229ba9eda4290138d56e7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11, c7ddc0a800bc9f681a18c3bdd9f06b61adfabc11 |
| Linux | Linux | 6.6, 0, 6.6.23 |
| Linux | Linux | *, 6.6.23, 6.7.11 |
| linux | linux_kernel | 6.6, 6.6, 6.6 |
Timeline
- May 1, 2024 CVE Published
- May 2, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Jan 15, 2026 Security Advisory (308 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (270 in total, the first dated here)
- May 11, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27040
vulnetix vdb fixes CVE-2024-27040
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27040/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart