{"id":"CVE-2022-50181","summary":"virtio-gpu: fix a missing check to avoid NULL dereference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio-gpu: fix a missing check to avoid NULL dereference\n\n'cache_ent' could be set NULL inside virtio_gpu_cmd_get_capset()\nand it will lead to a NULL dereference by a lately use of it\n(i.e., ptr = cache_ent-\u003ecaps_cache). Fix it with a NULL check.\n\n\n[ kraxel: minor codestyle fixup ]","modified":"2026-04-03T13:14:43.990012Z","published":"2025-06-18T11:03:30.273Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02334-1","SUSE-SU-2025:02537-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50181.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/259773fc874258606c0121767a4a27466ff337eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/367882a5a9448b5e1ba756125308092d614cb96c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39caef09666c1d8274abf9472c72bcac236dc5fb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/adbdd21983fa292e53aec3eab97306b2961ea887"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd63f11f4c3c46afec07d821f74736161ff6e526"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50181.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50181"},{"type":"PACKAGE","url":"https://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":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257"},{"fixed":"259773fc874258606c0121767a4a27466ff337eb"},{"fixed":"39caef09666c1d8274abf9472c72bcac236dc5fb"},{"fixed":"adbdd21983fa292e53aec3eab97306b2961ea887"},{"fixed":"367882a5a9448b5e1ba756125308092d614cb96c"},{"fixed":"bd63f11f4c3c46afec07d821f74736161ff6e526"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50181.json"}}],"schema_version":"1.7.5"}