CVE-2025-38715 hfs: fix slab-out-of-bounds in hfs_bnode_read()

High 7.8 Published Updated

A slab-out-of-bounds read in the Linux kernel HFS filesystem can cause a system crash, requiring a kernel patch to prevent denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38715?

CVE-2025-38715 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 4 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

hfs: fix slab-out-of-bounds in hfs_bnode_read()

This patch introduces is_bnode_offset_valid() method that checks the requested offset value. Also, it introduces check_and_correct_requested_length() method that checks and correct the requested length (if it is necessary). These methods are used in hfs_bnode_read(), hfs_bnode_write(), hfs_bnode_clear(), hfs_bnode_copy(), and hfs_bnode_move() with the goal to prevent the access out of allocated memory and triggering the crash.

Weakness: CWE-125

Which versions are affected by CVE-2025-38715?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38715?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-38715 being exploited?

There is no known exploitation of CVE-2025-38715 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-38715, DEBIAN-CVE-2025-38715, GHSA-vwf8-rq93-5m8v, ROOT-OS-DEBIAN-11-CVE-2025-38715, ROOT-OS-DEBIAN-12-CVE-2025-38715, ROOT-OS-UBUNTU-2204-CVE-2025-38715 and 2 more.

Is CVE-2025-38715 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free