data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2026-89786 in the interactive tracker

CVE-2026-89786

ext4: fix out-of-bounds read in ext4_read_inline_dir()

9.1 EPSS 0.7% AV:N

Published 2026-09-16 (33 days ago) by the Linux kernel CNA. Subsystem fs/ext4. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2026-89786 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormfixedDLA-4841-1 · 2026-10-17 · text6.1.190-1Update the kernel and reboot. DLA-4841-1 shipped the fix on 2026-10-17, in 6.1.190-1. A running kernel keeps the old code until the machine restarts.
Debian 13trixiefixedDSA-6528-1 · 2026-09-29 · text6.12.111-1Update the kernel and reboot. DSA-6528-1 shipped the fix on 2026-09-29, in 6.12.111-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed7.2.6-1Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed7.2.6-1Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts.
Debian 12bookworm · linux-6.12fixedDLA-4817-1 · 2026-10-04 · text6.12.111-1~deb12u1Update the kernel and reboot. DLA-4817-1 shipped the fix on 2026-10-04, in 6.12.111-1~deb12u1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

ext4_read_inline_dir() can read a dirent header past the end of its inline buffer, triggering a slab-out-of-bounds read during getdents64(): BUG: KASAN: slab-out-of-bounds in __ext4_check_dir_entry Read of size 2 at addr ffff88800f3dd23c by task exploit/148 ... __ext4_check_dir_entry ext4_read_inline_dir iterate_dir The dirent payload lives in a buffer of exactly inline_size bytes: dir_buf = kmalloc(inline_size, GFP_NOFS); but iteration runs in a position space extra_offset bytes larger (extra_size = extra_offset + inline_size) so the synthetic "." and ".." land at their block-dir offsets. A dirent is formed at "dir_buf + pos - extra_offset", yet the ext4_check_dir_entry() length argument uses the larger extra_size. A position whose dirent header would extend past extra_size is therefore accepted, and the rescan loop's rec_len probe and ext4_check_dir_entry() dereference de->rec_len before the entry is rejected. Reject a position whose minimum-size dirent header would not fit within extra_size before forming de, in both the rescan and main loops, and pass inline_size rather than extra_size to ext4_check_dir_entry() so the length check matches the physical buffer.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

fs/ext4/inline.c

What this is
EXT4 FILE SYSTEMMAINTAINERS section matched on fs/ext4/ · linux-ext4@vger.kernel.org · Maintained
Kernel module
ext4

Check it on the machine

grep -w CONFIG_EXT4_FS /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

lsmod | grep -w ext4

Prints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.

Show whether Debian builds this, per release

Debian builds this code. Every release below compiles the affected file into the kernels it ships.

  • bookworm, trixie, forky, sid, bookworm · linux-6.12b
b
built in on some flavours, a module on others
Build switch
CONFIG_EXT4_FS

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2026-09-16 (33 days ago)source
CVSS
9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:Hsource recompute it
Attack vector
network (AV:N)source
EPSS
0.70%, higher than 52.1% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
fs/ext4

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
3.105.15.221d1e7c186555a
3.106.1.1885fd20d4e50dd
3.106.6.1571a1dea633b72
3.106.12.110b060861f662d
3.106.18.526702c7da86d8
3.107.2.636bf17bb90cd
3.107.39333cc809f0a

Debian advisories

AdvisoryDateShipped toDebian
DLA-4841-12026-10-17bookworm 6.1.190-1tracker
DLA-4817-12026-10-04bookworm 6.12.111-1~deb12u1tracker
DSA-6528-12026-09-29trixie 6.12.111-1tracker

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:NAttack vector, network
The slab OOB is in ext4_read_inline_dir(), reached from getdents64 via iterate_dir→ext4_readdir. nfsd_readdir does vfs_llseek plus iterate_dir, and ksmbd QUERY_DIRECTORY also calls iterate_dir, so a remote NFS/SMB client can trigger the same path on an ext4-backed export.
AC:LAttack complexity, low
A crafted inline directory with attacker-controlled rec_len values (or a seek/NFS cookie that lands ctx->pos near extra_size) deterministically forms a dirent past kmalloc(inline_size) and dereferences de->rec_len. No race or attacker-uncontrollable heap layout is required.
PR:NPrivileges required, none
READDIR on a guest/anonymous ksmbd share or AUTH_SYS NFS export needs no host account or capability. Automount of a malicious volume by udisks2/systemd also requires no attacker privileges on the victim.
UI:NUser interaction, none
Once the crafted or inline-data ext4 volume is exported or automounted, the attacker alone issues NFS/SMB READDIR or local getdents64. No separate victim must open a file or confirm a dialog at attack time.
S:UScope, unchanged
The out-of-bounds read and any resulting kernel crash stay within the host kernel's security authority. This is not a VM escape, IOMMU/DMA bypass, or other cross-boundary breakout.
C:HConfidentiality impact, high
ext4_check_dir_entry over-reads de->rec_len and adjacent dirent fields past the inline kmalloc buffer. If the inflated extra_size bound lets the check pass, dir_emit copies de->name for up to 255 bytes of adjacent kernel heap into the getdents/NFS/SMB reply.
I:NIntegrity impact, none
The defect is an over-read on the readdir path only. ext4_read_inline_dir does not write the over-read dirent, and there is no out-of-bounds write, type confusion, or control-flow hijack primitive.
A:HAvailability impact, high
KASAN reports a slab-out-of-bounds read in __ext4_check_dir_entry. An over-read that reaches unmapped slab or guard pages oopses or panics the kernel, and the attacker can repeat READDIR/getdents against the crafted directory.