CVE-2024-57923
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt-addons
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-core
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • linux-ibm-5.15
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management