CVE-2025-38203

5.5 MEDIUM

📋 TL;DR

A null pointer dereference vulnerability in the Linux kernel's JFS filesystem allows local attackers to trigger a kernel panic (denial of service) by exploiting a race condition in the jfs_ioc_trim function. This affects systems using JFS filesystems with the FITRIM ioctl capability. The vulnerability requires local access to execute.

💻 Affected Systems

Products:
  • Linux Kernel
Versions: Kernel versions before fixes (specific versions in references), particularly around 6.13.0-rc6
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable if JFS filesystem is in use and FITRIM ioctl is accessible. Many systems don't use JFS by default.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, potentially causing data corruption or loss if the system is performing critical operations.

🟠

Likely Case

Local denial of service through kernel panic, requiring system reboot to recover.

🟢

If Mitigated

Minimal impact if systems don't use JFS filesystems or have restricted local user access.

🌐 Internet-Facing: LOW - Requires local access to exploit, not directly exploitable over network.
🏢 Internal Only: MEDIUM - Local users or processes with JFS access could cause system crashes.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Syzkaller fuzzer discovered and can trigger the bug. Exploitation requires local access and specific timing conditions (race condition).

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Multiple stable kernel patches available (see references)

Vendor Advisory: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d6c1b3599b2feb5c7291f5ac3a36e5fa7cedb234

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version from your distribution. 2. Rebuild kernel if compiling from source with appropriate patches. 3. Reboot system to load new kernel.

🔧 Temporary Workarounds

Disable JFS module

linux

Prevent loading of JFS filesystem module if not needed

echo 'install jfs /bin/false' >> /etc/modprobe.d/disable-jfs.conf
rmmod jfs 2>/dev/null || true

Restrict FITRIM ioctl

linux

Limit access to FITRIM ioctl through capabilities or SELinux/AppArmor

setcap -r /usr/bin/fstrim
chmod 700 /usr/bin/fstrim

🧯 If You Can't Patch

  • Avoid using JFS filesystems for critical systems
  • Implement strict local user access controls and monitor for suspicious ioctl calls

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if JFS module is loaded: uname -r && lsmod | grep jfs

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is patched and test with syzkaller reproducer if available

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic messages mentioning jfs_ioc_trim
  • General protection fault errors in kernel logs
  • System crash/reboot events

Network Indicators:

  • None - local exploit only

SIEM Query:

source="kernel" AND ("jfs_ioc_trim" OR "general protection fault" OR "KASAN: null-ptr-deref")

🔗 References

📤 Share & Export