Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A vulnerability in the Linux kernel's Zram module has been addressed, which involved improper handling of partial discard requests. Zram, a compressed block device, does not support partial discards and typically returns immediately without processing such requests. This behavior led to a problem where the 'blkdiscard' command, when used with partial discard options, would hang indefinitely, waiting for a response that Zram was not designed to provide. The issue arose because the Zram module failed to properly signal the completion of these discard operations, causing the 'blkdiscard' command to sleep forever. The vulnerability has been fixed by ensuring that the Zram module correctly ends the I/O operation for partial discards, allowing the 'blkdiscard' command to complete as expected.
The vulnerability could cause the 'blkdiscard' command to hang indefinitely when used with partial discard options on a Zram device, leading to potential disruptions in system operations that rely on this command.
To reproduce this issue, use the 'blkdiscard' command with the '-p' option to specify partial discard requests on a Zram device (e.g., '/dev/zram0'). The command will hang indefinitely, demonstrating the vulnerability.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.