# CVE-2024-50156: drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-11-07T09:31:33.018Z
- Modified: 2026-06-17T08:03:44.300Z
- 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/msm: Avoid NULL dereference in msm_disp_state_print_regs()

If the allocation in msm_disp_state_dump_regs() failed then
`block->state` can be NULL. The msm_disp_state_print_regs() function
_does_ have code to try to handle it with:

  if (*reg)
    dump_addr = *reg;

...but since "dump_addr" is initialized to NULL the above is actually
a noop. The code then goes on to dereference `dump_addr`.

Make the function print "Registers not stored" when it sees a NULL to
solve this. Since we're touching the code, fix
msm_disp_state_print_regs() not to pointlessly take a double-pointer
and properly mark the pointer as `const`.

Patchwork: https://patchwork.freedesktop.org/patch/619657/

(As written by CVE List.)

## Affected

- Linux Linux: from 98659487b845c05b6bed85d881713545db674c7c before 42cf045086feae77b212f0f66e742b91a5b566b7; from 98659487b845c05b6bed85d881713545db674c7c before e8e9f2a12a6214080c8ea83220a596f6e1dedc6c; from 98659487b845c05b6bed85d881713545db674c7c before f7ad916273483748582d97cfa31054ccb19224f3; from 98659487b845c05b6bed85d881713545db674c7c before 563aa81fd66a4e7e6e551a0e02bcc23957cafe2f; from 98659487b845c05b6bed85d881713545db674c7c before 293f53263266bc4340d777268ab4328a97f041fa; 5.14 (not affected: before 5.14; from 5.15.170 up to 5.15.*; from 6.1.115 up to 6.1.*; from 6.6.59 up to 6.6.*; from 6.11.6 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.14 before 5.15.170; from 5.16 before 6.1.115; from 6.2 before 6.6.59; from 6.7 before 6.11.6; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/42cf045086feae77b212f0f66e742b91a5b566b7> (patch)
- <https://git.kernel.org/stable/c/e8e9f2a12a6214080c8ea83220a596f6e1dedc6c> (patch)
- <https://git.kernel.org/stable/c/f7ad916273483748582d97cfa31054ccb19224f3> (patch)
- <https://git.kernel.org/stable/c/563aa81fd66a4e7e6e551a0e02bcc23957cafe2f> (patch)
- <https://git.kernel.org/stable/c/293f53263266bc4340d777268ab4328a97f041fa> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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