CVE-2022-50181Published Jun 18, 2025 · Jun 18Updated Oct 28
virtio-gpu: fix a missing check to avoid NULL dereference
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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 ]
From the CVE record · Linux
The Linux kernel’s virtio-gpu code can dereference a NULL cache entry in virtio_gpu_cmd_get_capset(). The input does not establish whether an attacker can trigger this, or specify access requirements or user interaction.
Engineers running Linux kernels with virtio-gpu should check their deployments; affected versions are not specified.