
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-38230 is a vulnerability in the Linux kernel's JFS (Journaled File System) subsystem caused by insufficient validation of allocation group (AG) parameters in the dbMount() function. A low-privileged local attacker can exploit this flaw to trigger undefined behavior or system crashes during file system operations. The vulnerability affects the Linux kernel from version 2.6.13 through multiple stable branches, with fixed versions including 5.4.296, 5.10.240, 5.15.187, 6.1.143, 6.6.96, 6.12.36, and 6.15.4. It was published on July 4, 2025, with a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, Feedly).
The root cause is improper input validation (CWE-20) of the db_agheight, db_agwidth, and db_agstart fields read from JFS disk metadata during dbMount(). When a crafted or corrupted JFS filesystem image is mounted, these unchecked values propagate into dbAllocAG() in fs/jfs/jfs_dmap.c, where they are used as shift exponents and array indices. A negative or out-of-range shift exponent (e.g., -335544310) triggers a UBSAN shift-out-of-bounds error at line 1400, leading to undefined behavior or a kernel crash. The fix adds bounds checks derived from constants L2LPERCTL, LPERCTL/MAXAG, and CTLTREESIZE to reject invalid metadata early at mount time (Red Hat CVE, Kernel Patch).
Successful exploitation can cause kernel crashes (denial of service) and potential undefined behavior that may lead to arbitrary code execution in kernel context. Because the vulnerability is triggered at filesystem mount time with corrupted metadata, an attacker with low privileges who can mount a crafted JFS image could compromise system availability and integrity. In worst-case scenarios, kernel-level code execution could allow full system compromise, including privilege escalation and access to all data on the affected host (Red Hat CVE, Feedly).
There is no public proof-of-concept exploit or evidence of in-the-wild exploitation at this time. The vulnerability requires local access with low privileges and the ability to mount a crafted JFS filesystem image. The EPSS score is approximately 0.018% (0.000180), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly).
db_agheight, db_agwidth, or db_agstart to values outside valid bounds (e.g., a negative or excessively large db_agheight that causes a negative shift exponent in dbAllocAG()).mount or a FUSE-based mechanism (if permitted) to mount the malicious JFS image, triggering dbMount() to read and process the corrupted metadata without validation.dbAllocAG() in fs/jfs/jfs_dmap.c:1400, causing a shift-out-of-bounds undefined behavior, which may result in a kernel crash (DoS) or, in theory, exploitable memory corruption (Red Hat CVE, Kernel Patch).dmesg or /var/log/kern.log) containing UBSAN messages such as UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:1400:9 or shift exponent ... is negative; kernel oops or panic traces referencing dbAllocAG, dbDiscardAG, or jfs_ioc_t..img, .iso, or loop device files) in user-writable directories.mount system calls involving JFS filesystem type (-t jfs) initiated by non-root users; processes such as syz-executor or fuzzing tools running on the system.Apply the patched Linux kernel versions released by the upstream kernel project: 5.4.296, 5.10.240, 5.15.187, 6.1.143, 6.6.96, 6.12.36, or 6.15.4 (or later). Distribution-specific updates are available from Red Hat, Debian (linux 6.1.147-1), Ubuntu (USN-7856-1), and Oracle Linux. As a workaround, restrict the ability of unprivileged users to mount filesystems (e.g., set kernel.unprivileged_userns_clone=0 or restrict CAP_SYS_ADMIN) and disable JFS support (modprobe -r jfs) if the filesystem type is not required (Red Hat CVE, Ubuntu Advisory, 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."