In the Linux kernel, the following vulnerability has been resolved:
virtio-gpu: fix a missing check to avoid NULL dereference
'cacheent' could be set NULL inside virtiogpucmdgetcapset() and it will lead to a NULL dereference by a lately use of it (i.e., ptr = cacheent->caps_cache). Fix it with a NULL check.
[ kraxel: minor codestyle fixup ]
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39caef09666c1d8274abf9472c72bcac236dc5fb",
"target": {
"function": "virtio_gpu_get_caps_ioctl",
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-1bd3ca58",
"signature_version": "v1",
"digest": {
"length": 1294.0,
"function_hash": "152685190767125596884884149468713810765"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@adbdd21983fa292e53aec3eab97306b2961ea887",
"target": {
"function": "virtio_gpu_get_caps_ioctl",
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-26952ffb",
"signature_version": "v1",
"digest": {
"length": 1294.0,
"function_hash": "152685190767125596884884149468713810765"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39caef09666c1d8274abf9472c72bcac236dc5fb",
"target": {
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-45d8ce06",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"169937411165125440784898879387261622276",
"310323124989352469055431317899169402858",
"425278082815458267208345568300956956",
"159565163084461343021709633021435298063",
"212289145654339684997598736337959643431"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@367882a5a9448b5e1ba756125308092d614cb96c",
"target": {
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-65bc083c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"169937411165125440784898879387261622276",
"310323124989352469055431317899169402858",
"425278082815458267208345568300956956",
"159565163084461343021709633021435298063",
"212289145654339684997598736337959643431"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@259773fc874258606c0121767a4a27466ff337eb",
"target": {
"function": "virtio_gpu_get_caps_ioctl",
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-a5a7079b",
"signature_version": "v1",
"digest": {
"length": 1294.0,
"function_hash": "152685190767125596884884149468713810765"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@259773fc874258606c0121767a4a27466ff337eb",
"target": {
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-b2a5258a",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"169937411165125440784898879387261622276",
"310323124989352469055431317899169402858",
"425278082815458267208345568300956956",
"159565163084461343021709633021435298063",
"212289145654339684997598736337959643431"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd63f11f4c3c46afec07d821f74736161ff6e526",
"target": {
"function": "virtio_gpu_get_caps_ioctl",
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-b51c5f11",
"signature_version": "v1",
"digest": {
"length": 1294.0,
"function_hash": "152685190767125596884884149468713810765"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd63f11f4c3c46afec07d821f74736161ff6e526",
"target": {
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-b6babd71",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"169937411165125440784898879387261622276",
"310323124989352469055431317899169402858",
"425278082815458267208345568300956956",
"159565163084461343021709633021435298063",
"212289145654339684997598736337959643431"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@adbdd21983fa292e53aec3eab97306b2961ea887",
"target": {
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-f49d5948",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"169937411165125440784898879387261622276",
"310323124989352469055431317899169402858",
"425278082815458267208345568300956956",
"159565163084461343021709633021435298063",
"212289145654339684997598736337959643431"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@367882a5a9448b5e1ba756125308092d614cb96c",
"target": {
"function": "virtio_gpu_get_caps_ioctl",
"file": "drivers/gpu/drm/virtio/virtgpu_ioctl.c"
},
"deprecated": false,
"id": "CVE-2022-50181-f9ed5883",
"signature_version": "v1",
"digest": {
"length": 1294.0,
"function_hash": "152685190767125596884884149468713810765"
},
"signature_type": "Function"
}
]