CVE-2022-49232

Source
https://cve.org/CVERecord?id=CVE-2022-49232
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49232.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49232
Downstream
Related
Published
2025-02-26T01:55:58.618Z
Modified
2026-04-11T12:43:44.747519Z
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/amd/display: Fix a NULL pointer dereference in amdgpu_dm_connector_add_common_modes()
Details

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

drm/amd/display: Fix a NULL pointer dereference in amdgpudmconnectoraddcommon_modes()

In amdgpudmconnectoraddcommonmodes(), amdgpudmcreatecommonmode() is assigned to mode and is passed to drmmodeprobedadd() directly after that. drmmodeprobedadd() passes &mode->head to listaddtail(), and there is a dereference of it in listaddtail() without recoveries, which could lead to NULL pointer dereference on failure of amdgpudmcreatecommon_mode().

Fix this by adding a NULL check of mode.

This bug was found by a static analyzer.

Builds with 'make allyesconfig' show no new warnings, and our static analyzer no longer warns about this code.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49232.json",
    "cna_assigner": "Linux"
}
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
e7b07ceef2a650e5ed8ca37997689e086c680daf
Fixed
2c729dec8c1e3e2892fde5ce8181553860914e74
Fixed
57f4ad5e286fe4599c8fc63cf89f85f9eec7f9c9
Fixed
19a7eba284790cfbba2945deb2363cf03ce41648
Fixed
bdc7429708a0772d90c208975694f7c2133b1202
Fixed
f4eaa999fec78dec2a9c2d797438e05cbffb125b
Fixed
639b3b9def0a6a3f316a195d705d14113236e89c
Fixed
588a70177df3b1777484267584ef38ab2ca899a2

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.238
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.189
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.110
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.33
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.19
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.2

Database specific

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