Bug 2393189 (CVE-2025-38715) - CVE-2025-38715 kernel: hfs: fix slab-out-of-bounds in hfs_bnode_read()
Summary: CVE-2025-38715 kernel: hfs: fix slab-out-of-bounds in hfs_bnode_read()
Keywords:
Status: NEW
Alias: CVE-2025-38715
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-04 16:03 UTC by OSIDB Bzimport
Modified: 2025-09-22 13:45 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-04 16:03:55 UTC
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.

Comment 1 Mauro Matteo Cascella 2025-09-22 13:32:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025090458-CVE-2025-38715-8464@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.