CVE-2022-49221
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
26/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drm/msm/dp: populate connector of struct dp_panel<br />
<br />
DP CTS test case 4.2.2.6 has valid edid with bad checksum on purpose<br />
and expect DP source return correct checksum. During drm edid read,<br />
correct edid checksum is calculated and stored at<br />
connector::real_edid_checksum.<br />
<br />
The problem is struct dp_panel::connector never be assigned, instead the<br />
connector is stored in struct msm_dp::connector. When we run compliance<br />
testing test case 4.2.2.6 dp_panel_handle_sink_request() won&#39;t have a valid<br />
edid set in struct dp_panel::edid so we&#39;ll try to use the connectors<br />
real_edid_checksum and hit a NULL pointer dereference error because the<br />
connector pointer is never assigned.<br />
<br />
Changes in V2:<br />
-- populate panel connector at msm_dp_modeset_init() instead of at dp_panel_read_sink_caps()<br />
<br />
Changes in V3:<br />
-- remove unhelpful kernel crash trace commit text<br />
-- remove renaming dp_display parameter to dp<br />
<br />
Changes in V4:<br />
-- add more details to commit text<br />
<br />
Changes in v10:<br />
-- group into one series<br />
<br />
Changes in v11:<br />
-- drop drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read<br />
<br />
Signee-off-by: Kuogee Hsieh
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.10.67 (including) | 5.10.110 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.13.19 (including) | 5.14 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.14.6 (including) | 5.15.33 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.16.19 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.17 (including) | 5.17.2 (excluding) |
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/104074ebc0c3f358dd1ee944fbcde92c6e5a21dd
- https://git.kernel.org/stable/c/413c62697b61226a236c8b1f5cd64dcf42bcc12f
- https://git.kernel.org/stable/c/5e602f5156910c7b19661699896cb6e3fb94fab9
- https://git.kernel.org/stable/c/9525b8bcae8b99188990b56484799cf4b1b43786
- https://git.kernel.org/stable/c/fbba600f432a360b42452fee79d1fb35d3aa8aeb



