{"id":"DEBIAN-CVE-2024-27040","details":"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-\u003efuncs-\u003ereplay_set_power_opt().  if (replay == NULL && force_static)     return false;  ...  if (link-\u003ereplay_settings.replay_feature_enabled &&     replay-\u003efuncs-\u003ereplay_set_power_opt) { \treplay-\u003efuncs-\u003ereplay_set_power_opt(replay, *power_opts, panel_inst); \tlink-\u003ereplay_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)","modified":"2026-09-15T09:03:06.146811038Z","published":"2024-05-01T13:15:49.600Z","upstream":["CVE-2024-27040"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-27040"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7.12-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-27040.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.7.12-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-27040.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}