Re: [BUG] ext4: ext4_htree_fill_tree() reads '..' outside the dx root block when '.' has a bad rec_len
From: Theodore Tso
Date: Thu Dec 03 2026 - 23:01:17 EST
On Thu, Dec 03, 2026 at 08:35:10AM -0500, Kyuwon Cho wrote:
> Hi Ted, Andreas,
>
> Gentle ping on this report. ext4_htree_fill_tree() is unchanged in v7.4-rc5, so the read outside the dx root
> block is still there. I am happy to test a fix or to send
> more details if that helps.
We are absolutely flooded with AI generated bugs and security bugs.
Please note from https://docs.kernel.org/process/threat-model.html
that maliciously crafted file system is not considered a security bug.
In the Linux kernel’s threat model, the following classes of
problems are NOT considered Linux Kernel vulnerabilities. However,
when it is believed that the kernel could do better, they should be
reported, so that they can be reviewed and fixed where reasonably
possible, but they will be handled as any regular bug.
Some of these bugs may still have a security impact for a few
users, for example when their exploitation requires a dedicated
network link, a crafted device, or a crafted file system image that
only root may mount. For the vast majority of users the impact is
null, and such isolated bugs do not represent a target worth
writing an exploit for, which is why they are handled publicly (a
CVE may still be assigned later by the CVE team). However,
publishing a reproducer or an exploit could put the few exposed
users at risk. For such bugs, the fix is sent publicly like any
regular fix, with a commit message that does not detail how to
exploit the bug, while the reproducer and any exploit are only
shared privately with the maintainers and are never posted to
public lists.
In other words. I consider the storage device to be part of the
Trusted Computing Base. Someone who takes a USB device that is
scattered in the parking lot by a MSS, NSA, or KGB agent and just
mounts without running fsck first is committing professional
malpractice. And their incompetence does not consitute an emergency
on my part.
The bottom line is that I and many other kernel developers are
absolutely flooded and overloaded with real security bugs, and helping
our organizations deal with real bugs. Bugs that involve crafted file
systems are simply not a priority. We get enough noise from these
from Syzbot. Additional research prototypes generating more such bug
reports not really providing much in the way of real world impact,
because we have to be fairly ruthless in prioritizing what we work on.
I do file such things as bugs on my bug backlog, but it may be many
months before I get to it.
If you want to try creating a *fix* for a bug, we'll look at it, but
if the fix destroys performance or reduces future code maintainability
in the name of protecting against malicously crafted file systems, we
reserve the right to reject fixes as Not Being Worth It.
We are working on trying to improve instructions we can give to AI
agents to better create patches, and to improve our patch review to
reject terrible patches generated by well-meaning, but ultimately
misguided security researchers who seem to think that security for
weird-shit corner cases that aren't even part of our recognized threat
model is more important than all other considerations, including
performance and code maintainability.
Many organizations are also looking at tools and have developed tools,
for triaging the absolute *flood* of AI slop security reports and
fixes. Most of those tend to be fairly specific to their company, and
I'm not aware of anyone being willing to make their full security
triage pipeline public. But if you are looking for some research
directions that will actually help instead of harm upstream kernel
developers, perhaps this might be an area of fruitful research.
(But if you work for a security company that attempts to inflate the
severity of security bugs to claim that debugging tools that are being
insufficiently careful constitute a "one click expoit" because
obviously a stupid developer will run such commands as root on an
untrusted file system --- I know that I can't stop search researchers
from publishing such nonsense claims as part of their business model;
but I don't have to cooperate with them.)
Cheers,
- Ted