{"id":"CVE-2024-50156","aliases":["CVE-2024-50156"],"related":[],"kind":"vulnerability","state":"published","title":"drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()","summary":"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/","summarySource":"cvelist","descriptions":[{"lang":"en","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/","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/msm: Evitar la desreferenciación NULL en msm_disp_state_print_regs() Si la asignación en msm_disp_state_dump_regs() falla, entonces `block-&gt;state` puede ser NULL. La función msm_disp_state_print_regs() _sí_ tiene código para intentar manejarlo con: if (*reg) dump_addr = *reg; ...pero como \"dump_addr\" se inicializa a NULL, lo anterior es en realidad un noop. Luego, el código continúa para desreferenciar `dump_addr`. Haga que la función imprima \"Registros no almacenados\" cuando vea un NULL para resolver esto. Ya que estamos tocando el código, arregle msm_disp_state_print_regs() para que no tome un puntero doble sin sentido y marque correctamente el puntero como `const`. Parche: https://patchwork.freedesktop.org/patch/619657/","source":"nvd"}],"published":"2024-11-07T09:31:33.018Z","modified":"2026-06-17T08:03:44.300Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"98659487b845c05b6bed85d881713545db674c7c","fixed":"42cf045086feae77b212f0f66e742b91a5b566b7","status":"affected"},{"type":"git","introduced":"98659487b845c05b6bed85d881713545db674c7c","fixed":"e8e9f2a12a6214080c8ea83220a596f6e1dedc6c","status":"affected"},{"type":"git","introduced":"98659487b845c05b6bed85d881713545db674c7c","fixed":"f7ad916273483748582d97cfa31054ccb19224f3","status":"affected"},{"type":"git","introduced":"98659487b845c05b6bed85d881713545db674c7c","fixed":"563aa81fd66a4e7e6e551a0e02bcc23957cafe2f","status":"affected"},{"type":"git","introduced":"98659487b845c05b6bed85d881713545db674c7c","fixed":"293f53263266bc4340d777268ab4328a97f041fa","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.170","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.115","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.59","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.11.6","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.14","fixed":"5.15.170"},{"status":"affected","introduced":"5.16","fixed":"6.1.115"},{"status":"affected","introduced":"6.2","fixed":"6.6.59"},{"status":"affected","introduced":"6.7","fixed":"6.11.6"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"},{"status":"affected","version":"6.12"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/42cf045086feae77b212f0f66e742b91a5b566b7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8e9f2a12a6214080c8ea83220a596f6e1dedc6c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7ad916273483748582d97cfa31054ccb19224f3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/563aa81fd66a4e7e6e551a0e02bcc23957cafe2f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/293f53263266bc4340d777268ab4328a97f041fa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T20:20:34.229Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50156","url":"https://www.cve.org/CVERecord?id=CVE-2024-50156","licence":"CVE Terms of Use","modified":"2026-05-11T20:46:31.610Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50156","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50156","licence":"Public domain","modified":"2026-06-17T08:03:44.300Z"}],"updatedAt":"2026-11-25T22:58:47.862Z","epss":{"score":0.00216,"percentile":0.12806,"date":"2026-12-01T12:00:22.000Z"}}