CVE-2022-50181

published 18 Jun 2025 · updated 11 May 2026

virtio-gpu: fix a missing check to avoid NULL dereference

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 259773fc874258606c0121767a4a27466ff337eb, Kernel 367882a5a9448b5e1ba756125308092d614cb96c, Kernel 39caef09666c1d8274abf9472c72bcac236dc5fb and 2 more.

In the Linux kernel, the following vulnerability has been resolved: virtio-gpu: fix a missing check to avoid NULL dereference 'cache_ent' could be set NULL inside virtio_gpu_cmd_get_capset() and it will lead to a NULL dereference by a lately use of it (i.e., ptr = cache_ent->caps_cache). Fix it with a NULL check. [ kraxel: minor codestyle fixup ]

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.4, >=62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 <259773fc874258606c0121767a4a27466ff337eb, >=62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 <367882a5a9448b5e1ba756125308092d614cb96c, >=62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 <39caef09666c1d8274abf9472c72bcac236dc5fb, >=62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 <adbdd21983fa292e53aec3eab97306b2961ea887, >=62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 <bd63f11f4c3c46afec07d821f74736161ff6e526259773fc874258606c0121767a4a27466ff337eb, 367882a5a9448b5e1ba756125308092d614cb96c, 39caef09666c1d8274abf9472c72bcac236dc5fb, adbdd21983fa292e53aec3eab97306b2961ea887, bd63f11f4c3c46afec07d821f74736161ff6e526

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50181 severity on Zeptric[![CVE-2022-50181](https://zeptric.io/badge/cve/CVE-2022-50181.svg)](https://zeptric.io/cve/CVE-2022-50181)