5.5medium
virtio-gpu: fix a missing check to avoid NULL dereference
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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 ]
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 before 259773fc874258606c0121767a4a27466ff337eb, from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 before 39caef09666c1d8274abf9472c72bcac236dc5fb, from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 before adbdd21983fa292e53aec3eab97306b2961ea887, from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 before 367882a5a9448b5e1ba756125308092d614cb96c, from 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 before bd63f11f4c3c46afec07d821f74736161ff6e526, 4.4 Not affected: before 4.4, from 5.10.137 up to 5.10.*, from 5.15.61 up to 5.15.*, from 5.18.18 up to 5.18.*, from 5.19.2 up to 5.19.*, from 6.0 up to * | CVE List |
| linux linux_kernel | from 4.4 before 5.10.137, from 5.11 before 5.15.61, from 5.16 before 5.18.18, from 5.19 before 5.19.2 | NVD |
Classification
What each source says
CVE List
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 ]
NVD (es)
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->caps_cache). Se corrige con una comprobación de NULL. [kraxel: corrección menor de estilo de código]
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50181 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50181 changed 2026-06-17 | Public domain |