LiveActive security incident?Get immediate response
CVE Record

CVE-2024-57923: btrfs: zlib: fix avail_in bytes for s390 zlib HW compression path

In the Linux kernel, the following vulnerability has been resolved: btrfs: zlib: fix avail_in bytes for s390 zlib HW compression path Since the input data length passed to zlib_compress_folios() can be arbitrary, always setting strm.avail_in to a multiple of PAGE_SIZE may cause read-in bytes to exceed the input range. Currently this triggers an assert in btrfs_compress_folios() on the debug kernel (see below). Fix strm.avail_in calculation for S390 hardware acceleration path. assertion failed: *total_in <= orig_len, in fs/btrfs/compression.c:1041 ------------[ cut here ]------------ kernel BUG at fs/btrfs/compression.c:1041! monitor event: 0040 ilc:2 [#1] PREEMPT SMP CPU: 16 UID: 0 PID: 325 Comm: kworker/u273:3 Not tainted 6.13.0-20241204.rc1.git6.fae3b21430ca.300.fc41.s390x+debug #1 Hardware name: IBM 3931 A01 703 (z/VM 7.4.0) Workqueue: btrfs-delalloc btrfs_work_helper Krnl PSW : 0704d00180000000 0000021761df6538 (btrfs_compress_folios+0x198/0x1a0) R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:3 CC:1 PM:0 RI:0 EA:3 Krnl GPRS: 0000000080000000 0000000000000001 0000000000000047 0000000000000000 0000000000000006 ffffff01757bb000 000001976232fcc0 000000000000130c 000001976232fcd0 000001976232fcc8 00000118ff4a0e30 0000000000000001 00000111821ab400 0000011100000000 0000021761df6534 000001976232fb58 Krnl Code: 0000021761df6528: c020006f5ef4 larl %r2,0000021762be2310 0000021761df652e: c0e5ffbd09d5 brasl %r14,00000217615978d8 #0000021761df6534: af000000 mc 0,0 >0000021761df6538: 0707 bcr 0,%r7 0000021761df653a: 0707 bcr 0,%r7 0000021761df653c: 0707 bcr 0,%r7 0000021761df653e: 0707 bcr 0,%r7 0000021761df6540: c004004bb7ec brcl 0,000002176276d518 Call Trace: [<0000021761df6538>] btrfs_compress_folios+0x198/0x1a0 ([<0000021761df6534>] btrfs_compress_folios+0x194/0x1a0) [<0000021761d97788>] compress_file_range+0x3b8/0x6d0 [<0000021761dcee7c>] btrfs_work_helper+0x10c/0x160 [<0000021761645760>] process_one_work+0x2b0/0x5d0 [<000002176164637e>] worker_thread+0x20e/0x3e0 [<000002176165221a>] kthread+0x15a/0x170 [<00000217615b859c>] __ret_from_fork+0x3c/0x60 [<00000217626e72d2>] ret_from_fork+0xa/0x38 INFO: lockdep is turned off. Last Breaking-Event-Address: [<0000021761597924>] _printk+0x4c/0x58 Kernel panic - not syncing: Fatal exception: panic_on_oops

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This Linux kernel issue can make certain IBM s390/s390x systems using Btrfs zlib compression crash when the compression path reads beyond the intended input range. The public record shows a kernel BUG and panic on a debug kernel. The business risk is availability disruption, not a confirmed data breach or remote takeover.

Executive priority

Schedule remediation for affected s390/s390x Btrfs systems through normal kernel update channels. Escalate if these hosts support critical workloads or have recent matching kernel panics. There is no provided evidence of active exploitation.

Technical view

The flaw is in the Btrfs zlib compression path for s390 hardware acceleration. strm.avail_in could be rounded to a page-size multiple even when the actual input length was shorter, causing reads past the supplied range and triggering a btrfs_compress_folios assertion and kernel panic in the reported debug build.

Likely exposure

Exposure appears limited to Linux systems on s390/s390x using Btrfs with zlib compression and the affected kernel code path. The source marks Linux 6.12 and 6.13-related versions as affected, but does not provide broad distro package mapping.

Exploitation context

CISA KEV is false in the provided bundle, and no cited source reports active exploitation. The public evidence is a kernel crash trace during Btrfs delayed allocation work. Practical exploitability and non-debug-kernel impact are not fully described in the sources.

Researcher notes

The source is kernel-resolution text, not a full exploitability analysis. It identifies an input length accounting bug in zlib_compress_folios on the s390 hardware acceleration path and references two stable commits. CVSS, CWE, and distro-level fixed versions are absent.

Mitigation direction

  • Apply vendor kernel updates containing the referenced stable kernel fixes.
  • Prioritize affected s390/s390x hosts using Btrfs compression.
  • Check distribution advisories for exact fixed package versions.
  • Avoid inventing workarounds; follow kernel or distro vendor guidance.
  • Treat unexplained kernel panics on matching hosts as operationally relevant.

Validation and detection

  • Inventory Linux s390/s390x systems and running kernel versions.
  • Identify hosts using Btrfs with zlib compression enabled.
  • Confirm whether vendor kernels include the referenced stable commits.
  • Review kernel logs for btrfs_compress_folios assertions or panic traces.
  • Track distro advisories because affected package mapping is incomplete here.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2024-57923 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
0ADP providers
3Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxfd1e75d0105d2289e24b6d63cee49e6f7952c8bf, fd1e75d0105d2289e24b6d63cee49e6f7952c8bfunaffected
LinuxLinux6.12, 0, 6.12.10, 6.13affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.