VDB

CVE-2024-50156

CVE-2024-50156 PUBLISHED CVSS 5.5 MEDIUM

drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()

Reported by linux · Published November 7, 2024

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/

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux98659487b845c05b6bed85d881713545db674c7c, 98659487b845c05b6bed85d881713545db674c7c, 98659487b845c05b6bed85d881713545db674c7c
LinuxLinux5.14, 0, 5.15.170
linuxlinux_kernel5.14, 5.14, 5.14
LinuxLinux98659487b845c05b6bed85d881713545db674c7c, 98659487b845c05b6bed85d881713545db674c7c, 98659487b845c05b6bed85d881713545db674c7c

Timeline

  • Nov 6, 2024 CVE Published
  • Nov 7, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Nov 8, 2024 EPSS Score (30 in total, the first dated here)
  • Jan 2, 2026 Security Advisory (127 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (114 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-50156
vulnetix vdb fixes CVE-2024-50156

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-50156/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›