vdpa/mlx5: add validation for VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.295.16.155.17In the Linux kernel, the following vulnerability has been resolved:
vdpa/mlx5: add validation for VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command
When control vq receives a VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command request from the driver, presently there is no validation against the number of queue pairs to configure, or even if multiqueue had been negotiated or not is unverified. This may lead to kernel panic due to uninitialized resource for the queues were there any bogus request sent down by untrusted driver. Tie up the loose ends there.
From the CVE record · Linux
The Linux kernel’s vdpa/mlx5 control queue does not validate the requested number of queue pairs or whether multiqueue was negotiated. An untrusted driver can send a bogus VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET request, potentially causing a kernel panic through uninitialized queue resources.
Engineers running Linux kernels that use vdpa/mlx5 should check their exposure; affected versions are not specified.