Linux Kernel Btrfs Compression Vulnerability on S390 Hardware Acceleration

Vulnerability

A vulnerability in the Linux kernel's Btrfs file system compression routine for S390 hardware has been identified. The issue arises because the input data length to the zlib compression function can vary, leading to a situation where the read bytes may exceed the actual input range. This discrepancy triggers an assertion failure in the Btrfs compression function, causing a kernel panic. The vulnerability has been resolved by correcting the calculation of the input length for the S390 zlib hardware compression path.

Impact

Exploitation of this vulnerability leads to a kernel panic, causing a denial of service by crashing the system.

Reproduction

The vulnerability can be reproduced by using the Btrfs file system on a Linux kernel version that includes this vulnerability, specifically on S390 hardware. When the Btrfs compression function is called with certain input data lengths, the incorrect calculation of the available input bytes for the zlib compression can cause the read bytes to exceed the input range, triggering an assertion failure. This can be observed in the debug kernel, where the assertion failure leads to a kernel panic.

Remediation

Users should upgrade to a patched version of the Linux kernel where this vulnerability has been addressed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

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