CVE-2022-50181

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

No CVSS score yet EPSS 0.26%

Published 18 Jun 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50181

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50181 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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 ]

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257, before 259773fc874258606c0121767a4a27466ff337eb
affected from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257, before 39caef09666c1d8274abf9472c72bcac236dc5fb
affected from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257, before adbdd21983fa292e53aec3eab97306b2961ea887
affected from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257, before 367882a5a9448b5e1ba756125308092d614cb96c
affected from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257, before bd63f11f4c3c46afec07d821f74736161ff6e526
Other versions: unaffected
Linux
affected 4.4
unaffected before 4.4
unaffected from 5.10.137 up to and including 5.10.*
unaffected from 5.15.61 up to and including 5.15.*
unaffected from 5.18.18 up to and including 5.18.*
unaffected from 5.19.2 up to and including 5.19.*
unaffected 6.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50181 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50181

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50181
trivy image --scanners vuln IMAGE | grep CVE-2022-50181

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50181 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.