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

CVE-2022-50181
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 17 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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 ]

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 < 259773fc874258606c0121767a4a27466ff337eb ; affected 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 < 39caef09666c1d8274abf9472c72bcac236dc5fb ; affected 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 < adbdd21983fa292e53aec3eab97306b2961ea887 ; affected 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 < 367882a5a9448b5e1ba756125308092d614cb96c ; affected 62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257 < bd63f11f4c3c46afec07d821f74736161ff6e526
Linux · Linuxaffected 4.4 ; unaffected 0 < 4.4 ; unaffected 5.10.137 ≤ 5.10.* ; unaffected 5.15.61 ≤ 5.15.* ; unaffected 5.18.18 ≤ 5.18.* ; unaffected 5.19.2 ≤ 5.19.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD