In the Linux kernel, the following vulnerability has been resolved:
virtio-pci: Check if is_avq is NULL
[bug] In the virtiopcicommon.c function vpdelvqs, vpdev->isavq is involved to determine whether it is admin virtqueue, but this function vpdev->isavq may be empty. For installations, virtiopcilegacy does not assign a value to vpdev->isavq.
[fix] Check whether it is vpdev->isavq before use.
[test] Test with virsh Attach device Before this patch, the following command would crash the guest system
After applying the patch, everything seems to be working fine.
[
{
"id": "CVE-2024-42134-3a73d061",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"67343116263677947218167498666602843052",
"134232337452913613846466633606534041230",
"176093580211439452934423332340911036164",
"187161643584660451291541079057742562510"
],
"threshold": 0.9
},
"target": {
"file": "drivers/virtio/virtio_pci_common.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8fae27d141a32a1624d0d0d5419d94252824498"
},
{
"id": "CVE-2024-42134-57059f84",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "237045376197584699720474165698568172027",
"length": 1244.0
},
"target": {
"file": "drivers/virtio/virtio_pci_common.c",
"function": "vp_del_vqs"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8fae27d141a32a1624d0d0d5419d94252824498"
},
{
"id": "CVE-2024-42134-a96be4ca",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"67343116263677947218167498666602843052",
"134232337452913613846466633606534041230",
"176093580211439452934423332340911036164",
"187161643584660451291541079057742562510"
],
"threshold": 0.9
},
"target": {
"file": "drivers/virtio/virtio_pci_common.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e2024b0b9b3d5709e3f7e9b92951d7e29154106"
},
{
"id": "CVE-2024-42134-f88b87cf",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "237045376197584699720474165698568172027",
"length": 1244.0
},
"target": {
"file": "drivers/virtio/virtio_pci_common.c",
"function": "vp_del_vqs"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5e2024b0b9b3d5709e3f7e9b92951d7e29154106"
}
]