Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2025-38230
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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

Exploitation steps

  1. Gain local access: Obtain a low-privileged shell on a target Linux system running a vulnerable kernel version with JFS support enabled.
  2. Craft a malicious JFS image: Create a JFS filesystem image with corrupted AG parameters — specifically, set 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()).
  3. Mount the crafted image: Use 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.
  4. Trigger undefined behavior: The invalid AG parameters propagate to 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).

Indicators of compromise

  • Logs: Kernel logs (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.
  • File System: Presence of unusual or externally supplied JFS filesystem image files (.img, .iso, or loop device files) in user-writable directories.
  • Process: Unexpected 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.

Mitigation and workarounds

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

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.147-1

Fixed

sid

linux: 6.12.37-1

Fixed

trixie

linux: 6.12.37-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux

Affected

bionic (fips-updates)

linux-fips

Affected

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal

linux-azure-fde-5.15

Not Affected

focal (esm-infra)

linux

Affected

focal (fips-updates)

linux-fips

Affected

focal (fips)

linux-fips

Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

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-2026-93189HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesSep 17, 2026
CVE-2026-93188MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesSep 17, 2026
CVE-2026-93182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesSep 17, 2026
CVE-2026-93181NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency
NoNoSep 17, 2026
CVE-2026-93174NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.17
NoYesSep 17, 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