
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-37858 is a vulnerability discovered in the Linux kernel's JFS filesystem, specifically affecting the allocation group (AG) size calculation functionality. The vulnerability was disclosed on May 9, 2025, impacting the JFS filesystem implementation in the Linux kernel, particularly on 32-bit systems with aggregates larger than 2TB (NVD, Wiz).
The vulnerability stems from an integer overflow in the JFS filesystem's AG size calculation. When l2agsize exceeds 31 (possible with >2TB aggregates on 32-bit systems), the 32-bit shift operation (1 << l2agsize) causes undefined behavior and improper AG sizing. On 32-bit architectures, left-shifting 1 by 32+ bits results in 0 due to integer overflow, creating invalid AG sizes in sbi->bmap->db_agsize. The vulnerability was discovered by the Linux Verification Center using the SVACE tool. According to Red Hat's assessment, this vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (Red Hat, Debian Tracker).
The vulnerability can lead to filesystem corruption during extend operations, kernel crashes due to invalid memory accesses, and potential security vulnerabilities via malformed on-disk structures. This primarily affects systems using the JFS filesystem on 32-bit architectures with large storage configurations (NVD, Wiz).
The fix involves casting to s64 before performing the shift operation: bmp->db_agsize = (s64)1 << l2agsize. This ensures 64-bit arithmetic even on 32-bit architectures. The fix has been implemented in Linux kernel version 6.1.135-1 for Debian bookworm and subsequent versions (Debian Tracker).
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."