{"id":"CVE-2022-50181","aliases":["CVE-2022-50181"],"related":[],"kind":"vulnerability","state":"published","title":"virtio-gpu: fix a missing check to avoid NULL dereference","summary":"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->caps_cache). Fix it with a NULL check.\n\n\n[ kraxel: minor codestyle fixup ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->caps_cache). Fix it with a NULL check.\n\n\n[ kraxel: minor codestyle fixup ]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: virtio-gpu: se corrige una comprobación faltante para evitar la desreferencia de NULL. 'cache_ent' podría establecerse en NULL dentro de virtio_gpu_cmd_get_capset(), lo que provocaría una desreferencia de NULL al usarla recientemente (es decir, ptr = cache_ent-&gt;caps_cache). Se corrige con una comprobación de NULL. [kraxel: corrección menor de estilo de código]","source":"nvd"}],"published":"2025-06-18T11:03:30.273Z","modified":"2026-06-17T05:22:55.460Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","fixed":"259773fc874258606c0121767a4a27466ff337eb","status":"affected"},{"type":"git","introduced":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","fixed":"39caef09666c1d8274abf9472c72bcac236dc5fb","status":"affected"},{"type":"git","introduced":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","fixed":"adbdd21983fa292e53aec3eab97306b2961ea887","status":"affected"},{"type":"git","introduced":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","fixed":"367882a5a9448b5e1ba756125308092d614cb96c","status":"affected"},{"type":"git","introduced":"62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257","fixed":"bd63f11f4c3c46afec07d821f74736161ff6e526","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.4","status":"unaffected"},{"type":"semver","introduced":"5.10.137","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.61","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.18","lastAffected":"5.18.*","status":"unaffected"},{"type":"semver","introduced":"5.19.2","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.4","fixed":"5.10.137"},{"status":"affected","introduced":"5.11","fixed":"5.15.61"},{"status":"affected","introduced":"5.16","fixed":"5.18.18"},{"status":"affected","introduced":"5.19","fixed":"5.19.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/259773fc874258606c0121767a4a27466ff337eb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39caef09666c1d8274abf9472c72bcac236dc5fb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/adbdd21983fa292e53aec3eab97306b2961ea887","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/367882a5a9448b5e1ba756125308092d614cb96c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd63f11f4c3c46afec07d821f74736161ff6e526","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50181","url":"https://www.cve.org/CVERecord?id=CVE-2022-50181","licence":"CVE Terms of Use","modified":"2026-05-11T19:14:21.650Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50181","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50181","licence":"Public domain","modified":"2026-06-17T05:22:55.460Z"}],"updatedAt":"2026-11-25T22:58:21.092Z","epss":{"score":0.00263,"percentile":0.19428,"date":"2026-12-01T12:00:22.000Z"}}