
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-57923 affects the Linux kernel's BTRFS filesystem implementation, specifically related to zlib compression on the s390 hardware compression path. The vulnerability was discovered and disclosed on January 19, 2025. The issue occurs in the zlib compression functionality where improper handling of input data length in zlib_compress_folios() can lead to read-in bytes exceeding the input range (NVD).
The vulnerability stems from incorrect calculation of strm.avail_in bytes in the s390 zlib hardware compression path. When the input data length passed to zlib_compress_folios() is arbitrary, setting strm.avail_in to a multiple of PAGE_SIZE can cause read-in bytes to exceed the input range. This triggers an assertion failure in btrfs_compress_folios() on debug kernels, specifically at fs/btrfs/compression.c:1041. The issue was introduced by commit fd1e75d0105d which made the compression path subpage compatible (Kernel Commit).
The vulnerability can trigger a kernel panic on systems running debug kernels with the affected code path. This results in a denial of service condition when the system encounters the specific compression scenario on s390 hardware (NVD).
The issue has been fixed by correcting the strm.avail_in calculation for the S390 hardware acceleration path. The fix involves using min(bytes_left, in_buf_folios << PAGE_SHIFT) instead of always using (in_buf_folios << PAGE_SHIFT) for the calculation (Kernel Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."