{"id":"CVE-2024-50156","published":"2024-11-07T09:31:33Z","modified":"2026-05-11T20:46:31Z","title":"drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm: Avoid NULL dereference in msm_disp_state_print_regs()\n\nIf the allocation in msm_disp_state_dump_regs() failed then\n`block->state` can be NULL. The msm_disp_state_print_regs() function\n_does_ have code to try to handle it with:\n\n  if (*reg)\n    dump_addr = *reg;\n\n...but since \"dump_addr\" is initialized to NULL the above is actually\na noop. The code then goes on to dereference `dump_addr`.\n\nMake the function print \"Registers not stored\" when it sees a NULL to\nsolve this. Since we're touching the code, fix\nmsm_disp_state_print_regs() not to pointlessly take a double-pointer\nand properly mark the pointer as `const`.\n\nPatchwork: https://patchwork.freedesktop.org/patch/619657/","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00216,"percentile":0.12287,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/42cf045086feae77b212f0f66e742b91a5b566b7","tags":[]},{"url":"https://git.kernel.org/stable/c/e8e9f2a12a6214080c8ea83220a596f6e1dedc6c","tags":[]},{"url":"https://git.kernel.org/stable/c/f7ad916273483748582d97cfa31054ccb19224f3","tags":[]},{"url":"https://git.kernel.org/stable/c/563aa81fd66a4e7e6e551a0e02bcc23957cafe2f","tags":[]},{"url":"https://git.kernel.org/stable/c/293f53263266bc4340d777268ab4328a97f041fa","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":2.46},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 98659487b845c05b6bed85d881713545db674c7c, < 42cf045086feae77b212f0f66e742b91a5b566b7",">= 98659487b845c05b6bed85d881713545db674c7c, < e8e9f2a12a6214080c8ea83220a596f6e1dedc6c",">= 98659487b845c05b6bed85d881713545db674c7c, < f7ad916273483748582d97cfa31054ccb19224f3",">= 98659487b845c05b6bed85d881713545db674c7c, < 563aa81fd66a4e7e6e551a0e02bcc23957cafe2f",">= 98659487b845c05b6bed85d881713545db674c7c, < 293f53263266bc4340d777268ab4328a97f041fa"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T20:20:34.229291Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-44658","exploited":false,"provenance":"source"}}