Cloudanix VulnDB

CVE-2025-38204

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jul 4, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in how the Linux kernel reads certain filesystem data could let an attacker with local access cause crashes or gain higher privileges on affected systems.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Data Exposure
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Out-of-bounds array read in JFS add_missing_indices due to s8 stbl array holding offsets that can exceed 127 without bounds validation, allowing invalid slot access before the added -EIO check.

Why it matters to the business

Kernel memory corruption risk on systems mounting JFS filesystems can lead to crashes, data inconsistency, or local privilege escalation; low exploit probability but rising EPSS and presence in container images increases exposure for affected Linux deployments.

How an attack unfolds

An attacker with local access crafts or corrupts a JFS filesystem image containing invalid stbl offsets, mounts it, and triggers readdir operations that call add_missing_indices; failure to validate allows out-of-bounds read that can be leveraged for further kernel memory access in privilege escalation scenarios similar to other listed Linux kernel flaws.

How to fix it

Upgrade affected Linux kernels to the fixed commit 81af4b34fd72d390d7f237c6a545cc6d09707956; for Chainguard kubernetes-fips-1.30 images apply the version containing the JFS patch or migrate to unaffected releases; disable JFS module if unused.

How to confirm the fix worked

Verify kernel source contains the bounds check returning -EIO in add_missing_indices and that jfs_readdir propagates errors; confirm running kernel version includes commit 81af4b34fd72d390d7f237c6a545cc6d09707956 via uname or package metadata.

Typical attack path

  1. Obtain local code execution or shell on target system
  2. Prepare malicious JFS filesystem image with oversized stbl offsets
  3. Mount the image and invoke directory operations triggering jfs_readdir
  4. Trigger the missing bounds check path to perform out-of-bounds read
  5. Leverage resulting memory corruption for privilege escalation or denial of service

How to detect it

Search kernel logs for JFS-related EIO returns from readdir or add_missing_indices failures; inspect mounted JFS volumes for corruption indicators and review audit logs for unusual mount or directory traversal activity by untrusted processes.

What your security team should do

  • Prioritize kernel updates on any systems using JFS filesystems within 30 days given rising EPSS
  • Audit for JFS usage in container base images and replace with ext4 or xfs where possible
  • Monitor for kernel oops or EIO errors during directory enumeration on JFS volumes
  • Apply defense-in-depth with LSMs and restrict unprivileged mounts

The record

In the Linux kernel, the following vulnerability has been resolved: jfs: fix array-index-out-of-bounds read in add_missing_indices stbl is s8 but it must contain offsets into slot which can go from 0 to 127. Added a bound check for that error and return -EIO if the check fails. Also make jfs_readdir return with error if add_missing_indices returns with an error.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard hyperv-daemons-6.12 0 6.12.63-r0
Chainguard linux-aws-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-aws-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-aws-6.12-headers 0 6.12.63-r0
Chainguard linux-aws-6.12-modules 0 6.12.63-r0
Chainguard linux-azure-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-azure-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-azure-6.12-headers 0 6.12.63-r0
Chainguard linux-azure-6.12-modules 0 6.12.63-r0
Chainguard linux-gcp-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-gcp-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-gcp-6.12-headers 0 6.12.63-r0
Chainguard linux-gcp-6.12-modules 0 6.12.63-r0
Chainguard linux-qemu-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-qemu-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-qemu-6.12-headers 0 6.12.63-r0
Chainguard linux-qemu-6.12-modules 0 6.12.63-r0
Chainguard linux-vmware-6.12-boot-installed 0 6.12.63-r0
Chainguard linux-vmware-6.12-fips-boot-installed 0 6.12.63-r0
Chainguard linux-vmware-6.12-headers 0 6.12.63-r0
Chainguard linux-vmware-6.12-modules 0 6.12.63-r0
Debian:11 linux 0 No fix
Debian:12 linux 0 5.16.7-1
Debian:13 linux 0 5.16.7-1
Linux Kernel 0 5.4.295
Linux Kernel 2.6.12 5.4.295
SUSE:Linux Enterprise High Availability Extension 15 SP6 kernel-default 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-default 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_14 0 1-150600.1.5.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_14 0 1-150600.13.3.4
SUSE:Linux Enterprise Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_3 0 1-150700.1.5.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-64kb 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-default 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-default-base 0 6.4.0-150600.23.65.1.150600.12.28.4
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-source 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-zfcpdump 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-coco 0 6.4.0-15061.28.coco15sp6.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-coco_debug 0 6.4.0-15061.28.coco15sp6.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-source-coco 0 6.4.0-15061.28.coco15sp6.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-syms-coco 0 6.4.0-15061.28.coco15sp6.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-docs 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-obs-build 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-source 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-syms 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Legacy 15 SP6 kernel-default 0 6.4.0-150600.23.65.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-azure 0 6.4.0-150600.8.48.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-source-azure 0 6.4.0-150600.8.48.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-syms-azure 0 6.4.0-150600.8.48.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 kernel-default 0 6.4.0-150600.23.65.1
SUSE:Real Time Module 15 SP6 kernel-rt 0 6.4.0-150600.10.49.1
SUSE:Real Time Module 15 SP6 kernel-rt_debug 0 6.4.0-150600.10.49.1
SUSE:Real Time Module 15 SP6 kernel-source-rt 0 6.4.0-150600.10.49.1
SUSE:Real Time Module 15 SP6 kernel-syms-rt 0 6.4.0-150600.10.49.1
SUSE:Real Time Module 15 SP7 kernel-rt 0 6.4.0-150700.7.13.1
SUSE:Real Time Module 15 SP7 kernel-source-rt 0 6.4.0-150700.7.13.1
SUSE:Real Time Module 15 SP7 kernel-syms-rt 0 6.4.0-150700.7.13.1
openSUSE:Leap 15.6 dtb-aarch64 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-64kb 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-azure 0 6.4.0-150600.8.48.1
openSUSE:Leap 15.6 kernel-debug 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-default 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-default-base 0 6.4.0-150600.23.65.1.150600.12.28.4
openSUSE:Leap 15.6 kernel-docs 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-kvmsmall 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-obs-build 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-obs-qa 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-rt 0 6.4.0-150600.10.49.1
openSUSE:Leap 15.6 kernel-rt_debug 0 6.4.0-150600.10.49.1
openSUSE:Leap 15.6 kernel-source 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-source-azure 0 6.4.0-150600.8.48.1
openSUSE:Leap 15.6 kernel-source-rt 0 6.4.0-150600.10.49.1
openSUSE:Leap 15.6 kernel-syms 0 6.4.0-150600.23.65.1
openSUSE:Leap 15.6 kernel-syms-azure 0 6.4.0-150600.8.48.1
openSUSE:Leap 15.6 kernel-syms-rt 0 6.4.0-150600.10.49.1
openSUSE:Leap 15.6 kernel-zfcpdump 0 6.4.0-150600.23.65.1

Related vulnerabilities