CVE-2024-50156
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
07/11/2024
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()<br />
<br />
If the allocation in msm_disp_state_dump_regs() failed then<br />
`block->state` can be NULL. The msm_disp_state_print_regs() function<br />
_does_ have code to try to handle it with:<br />
<br />
if (*reg)<br />
dump_addr = *reg;<br />
<br />
...but since "dump_addr" is initialized to NULL the above is actually<br />
a noop. The code then goes on to dereference `dump_addr`.<br />
<br />
Make the function print "Registers not stored" when it sees a NULL to<br />
solve this. Since we&#39;re touching the code, fix<br />
msm_disp_state_print_regs() not to pointlessly take a double-pointer<br />
and properly mark the pointer as `const`.<br />
<br />
Patchwork: https://patchwork.freedesktop.org/patch/619657/
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.14 (including) | 5.15.170 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.115 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.59 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.11.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/293f53263266bc4340d777268ab4328a97f041fa
- https://git.kernel.org/stable/c/42cf045086feae77b212f0f66e742b91a5b566b7
- https://git.kernel.org/stable/c/563aa81fd66a4e7e6e551a0e02bcc23957cafe2f
- https://git.kernel.org/stable/c/e8e9f2a12a6214080c8ea83220a596f6e1dedc6c
- https://git.kernel.org/stable/c/f7ad916273483748582d97cfa31054ccb19224f3
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html



