🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages Started by bugzilla-noreply Fri, 16 Oct 2026 05:28
[Bug 299430] ext2fs: fix out-of-bounds write in ext4_ext_find_extent() for maximum-depth (5) extent trees
#118
Author: bugzilla-noreply
Date: Fri, 16 Oct 2026 05:28
55 lines
3596 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299430

            Bug ID: 299430
           Summary: ext2fs: fix out-of-bounds write in
                    ext4_ext_find_extent() for maximum-depth (5) extent
                    trees
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: david@crap.solutions

Created attachment 275747
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=275747&action=edit
fix out-of-bounds write in ext4_ext_find_extent()

ext4_ext_find_extent() allocates EXT4_EXT_DEPTH_MAX (5) struct ext4_extent_path
entries, but
the tree walk stores path[0] through path[depth], inclusive. A filesystem whose
inode extent
header has eh_depth == EXT4_EXT_DEPTH_MAX therefore writes path[5], one entry
past the
allocation.

eh_depth 5 is a valid on-disk value (the maximum extent depth, reached by large
files grown
over time); Linux's EXT4_MAX_EXTENT_DEPTH is likewise 5 and ext4_find_extent()
rejects only
depths greater than that.

Reproduce: Mount an ext4 filesystem crafted with an inode whose extent header
has eh_depth
5. Reproduced on 16-CURRENT in a bhyve guest: MemGuard guard-page fault in
ext4_ext_find_extent().

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 299430] ext2fs: fix out-of-bounds write in ext4_ext_find_extent() for maximum-depth (5) extent trees
#119
Author: bugzilla-noreply
Date: Fri, 16 Oct 2026 06:51
16 lines
2639 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299430

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |fs@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads