Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
- >= 5.13, < 5.13.1
A vulnerability in the Linux kernel's Comedi PCL812 driver allows for an out-of-bounds bit shift when handling IRQ numbers. The issue arises because 'it->options[1]' is an unchecked integer from userspace, which could lead to negative or out-of-bounds shift amounts. This vulnerability affects several versions of the Linux kernel, specifically in the stable branch, and has been addressed by adding a bounds check to ensure that 'it->options[1]' is within a valid range before performing the bit shift operation.
Exploitation of this vulnerability could lead to undefined behavior in the driver, potentially allowing for incorrect handling of interrupts or other related operations.
The vulnerability can be reproduced by loading the Comedi PCL812 driver with a configuration that includes an invalid IRQ option. This can be done by specifying an 'options' value that leads to a negative shift or a shift greater than 15, which is out of the valid range for IRQ selection. The driver will then attempt to process the IRQ option without proper validation, leading to the out-of-bounds bit shift.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched kernel are available on the official Linux kernel website.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.