Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability in the Linux kernel's virtio-vdpa implementation relates to how affinity masks are built and managed. The issue arises because the affinity masks are created unconditionally, which can lead to several problems. Notably, the masks are not utilized for parent devices that do not support affinity, and the current logic may fail for non-block devices, such as certain networking components, where the number of queues can surpass the number of available CPUs. This discrepancy can trigger warnings by violating assumptions in the CPU grouping logic. The vulnerability has been addressed by modifying the affinity mask creation process to be conditional, ensuring that masks are only built when appropriate, such as when a driver provides an affinity descriptor or when the parent device supports affinity configuration operations.
The vulnerability could cause incorrect handling of interrupt affinities, potentially leading to performance issues or degraded functionality in virtualized environments that rely on the virtio-vdpa framework.
The vulnerability can be reproduced by using a virtio device in a networking context where the number of queues exceeds the number of CPUs. This scenario will break the affinity logic, causing warnings to be generated. The issue can also be observed by using a parent device that lacks affinity support, which will result in the affinity mask not being applied as intended.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available in the Linux kernel documentation.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.