Linux Kernel Zram Partial Discard Handling Vulnerability

Vulnerability

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.

Impact

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.

Reproduction

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.

Remediation

The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version where this issue has been addressed.

Added: May 27, 2026, 7:45 PM
Updated: May 27, 2026, 7:45 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.3
remediation
7.7
relevance
9.7
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.