{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50181",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-06-18T10:57:27.427Z",
        "datePublished": "2025-06-18T11:03:30.273Z",
        "dateUpdated": "2026-05-11T19:14:21.650Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:14:21.650Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio-gpu: fix a missing check to avoid NULL dereference\n\n'cache_ent' could be set NULL inside virtio_gpu_cmd_get_capset()\nand it will lead to a NULL dereference by a lately use of it\n(i.e., ptr = cache_ent->caps_cache). Fix it with a NULL check.\n\n\n[ kraxel: minor codestyle fixup ]"
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
                    ],
                    "versions": [
                        {
                            "version": "62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257",
                            "lessThan": "259773fc874258606c0121767a4a27466ff337eb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257",
                            "lessThan": "39caef09666c1d8274abf9472c72bcac236dc5fb",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257",
                            "lessThan": "adbdd21983fa292e53aec3eab97306b2961ea887",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257",
                            "lessThan": "367882a5a9448b5e1ba756125308092d614cb96c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "62fb7a5e10962ac6ae2a2d2dbd3aedcb2a3e3257",
                            "lessThan": "bd63f11f4c3c46afec07d821f74736161ff6e526",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
                    ],
                    "versions": [
                        {
                            "version": "4.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.137",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.61",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.18.18",
                            "lessThanOrEqual": "5.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.2",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "5.10.137"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "5.15.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "5.18.18"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "5.19.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "6.0"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/259773fc874258606c0121767a4a27466ff337eb"
                },
                {
                    "url": "https://git.kernel.org/stable/c/39caef09666c1d8274abf9472c72bcac236dc5fb"
                },
                {
                    "url": "https://git.kernel.org/stable/c/adbdd21983fa292e53aec3eab97306b2961ea887"
                },
                {
                    "url": "https://git.kernel.org/stable/c/367882a5a9448b5e1ba756125308092d614cb96c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bd63f11f4c3c46afec07d821f74736161ff6e526"
                }
            ],
            "title": "virtio-gpu: fix a missing check to avoid NULL dereference",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}