# CVE-2024-26729: drm/amd/display: Fix potential null pointer dereference in dc_dmub_srv

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-04-03T17:00:17.494Z
- Modified: 2026-06-17T07:18:11.680Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

drm/amd/display: Fix potential null pointer dereference in dc_dmub_srv

Fixes potential null pointer dereference warnings in the
dc_dmub_srv_cmd_list_queue_execute() and dc_dmub_srv_is_hw_pwr_up()
functions.

In both functions, the 'dc_dmub_srv' variable was being dereferenced
before it was checked for null. This could lead to a null pointer
dereference if 'dc_dmub_srv' is null. The fix is to check if
'dc_dmub_srv' is null before dereferencing it.

Thus moving the null checks for 'dc_dmub_srv' to the beginning of the
functions to ensure that 'dc_dmub_srv' is not null when it is
dereferenced.

Found by smatch & thus fixing the below:
drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:133 dc_dmub_srv_cmd_list_queue_execute() warn: variable dereferenced before check 'dc_dmub_srv' (see line 128)
drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:1167 dc_dmub_srv_is_hw_pwr_up() warn: variable dereferenced before check 'dc_dmub_srv' (see line 1164)

(As written by CVE List.)

## Affected

- Linux Linux: from 65138eb72e1fc687be49932b9a45325598ffa01c before 351080ba3414c96afff0f1338b4aeb2983195b80; from 65138eb72e1fc687be49932b9a45325598ffa01c before d2b48f340d9e4a8fbeb1cdc84cd8da6ad143a907; 6.7 (not affected: before 6.7; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.7 before 6.7.7; 6.8

## References

- <https://git.kernel.org/stable/c/351080ba3414c96afff0f1338b4aeb2983195b80> (patch)
- <https://git.kernel.org/stable/c/d2b48f340d9e4a8fbeb1cdc84cd8da6ad143a907> (patch)

## Sources

- CVE List: [CVE-2024-26729](https://www.cve.org/CVERecord?id=CVE-2024-26729), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-26729](https://nvd.nist.gov/vuln/detail/CVE-2024-26729), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26729 · Whole record: https://cve.day/CVE-2024-26729.json · Rebuilt by cve.day 2026-11-25T22:58:38.670Z
