CVE-2022-49221

Source
https://cve.org/CVERecord?id=CVE-2022-49221
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49221.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49221
Downstream
Related
Published
2025-02-26T01:55:53.318Z
Modified
2026-03-12T03:24:52.049827Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
drm/msm/dp: populate connector of struct dp_panel
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/msm/dp: populate connector of struct dp_panel

DP CTS test case 4.2.2.6 has valid edid with bad checksum on purpose and expect DP source return correct checksum. During drm edid read, correct edid checksum is calculated and stored at connector::realedidchecksum.

The problem is struct dppanel::connector never be assigned, instead the connector is stored in struct msmdp::connector. When we run compliance testing test case 4.2.2.6 dppanelhandlesinkrequest() won't have a valid edid set in struct dppanel::edid so we'll try to use the connectors realedid_checksum and hit a NULL pointer dereference error because the connector pointer is never assigned.

Changes in V2: -- populate panel connector at msmdpmodesetinit() instead of at dppanelreadsink_caps()

Changes in V3: -- remove unhelpful kernel crash trace commit text -- remove renaming dp_display parameter to dp

Changes in V4: -- add more details to commit text

Changes in v10: -- group into one series

Changes in v11: -- drop drm/msm/dp: dplinkparsesinkcount() return immediately if aux read

Signee-off-by: Kuogee Hsieh quic_khsieh@quicinc.com

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49221.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f86bc4a1a401d3691bad41e67f9db0c2ea94da32
Fixed
413c62697b61226a236c8b1f5cd64dcf42bcc12f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7948fe12d47a946fb8025a0534c900e3dd4b5839
Fixed
9525b8bcae8b99188990b56484799cf4b1b43786
Fixed
fbba600f432a360b42452fee79d1fb35d3aa8aeb
Fixed
104074ebc0c3f358dd1ee944fbcde92c6e5a21dd
Fixed
5e602f5156910c7b19661699896cb6e3fb94fab9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
ab1ccd1e2584b268784518f838f7cc72faec576b
Last affected
08a96864a45b65ee406a344c78dd761b2fd66887

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49221.json"