CVE-2025-37858
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Mitigation and workarounds

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

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-64k-debug-devel
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-cross-headers
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-core
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