CVE-2026-89787

ext4: check dir entry fits before reading the hash trailer in ext4_search_dir()

CVE-2026-89787 is fixed in 47 products on 1 platform, first by DEBIAN-CVE-2026-89787, released September 23, 2026. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.8
Moderate
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0021
11th percentile

In the Linux kernel, the following vulnerability has been resolved: ext4: check dir entry fits before reading the hash trailer in ext4_search_dir() For casefolded encrypted directories ext4 stores an 8-byte hash trailer after the name (EXT4_DIRENT_HASHES()), at an offset derived from de->name_len. On the sb_no_casefold_compat_fallback() path ext4_match() reads that trailer, but ext4_search_dir()'s by-hand pre-check only tests de->name + de->name_len <= dlimit, which proves the name fits, not the rounded trailer. A crafted entry whose name ends at the block boundary passes the check while EXT4_DIRENT_HASHES(de) lands past the block end, so ext4_match() reads out of bounds on an ordinary lookup. KASAN reports it as a use-after-free when the page after the directory block holds a freed object: BUG: KASAN: use-after-free in ext4_match (fs/ext4/namei.c:1435) Read of size 4 at addr ffff888010458000 by task exploit Call Trace: ext4_match (fs/ext4/namei.c:1435) ext4_search_dir (fs/ext4/namei.c:1470) __ext4_find_entry (fs/ext4/namei.c:1268 fs/ext4/namei.c:1632) ext4_lookup (fs/ext4/namei.c:1703 fs/ext4/namei.c:1769) ... filename_lookup (fs/namei.c:2842) vfs_statx (fs/stat.c:353) __do_sys_newfstatat (fs/stat.c:538) do_syscall_64 (arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) Require, for hash-in-dirent directories, that the whole entry including the rounded trailer fits before calling ext4_match(). This is the same bound ext4_check_dir_entry() already enforces via ext4_dir_rec_len(), so no well-formed entry is rejected. The other caller, ext4_find_dest_de(), runs ext4_check_dir_entry() first and is unaffected.

Where it's fixed

ProductFixed inFixReleased
Linux
kernel-64kb · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-azure · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-default · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-default-base · sles 15.7 6.4.0-150700.53.90.1.150700.17.51.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-docs · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-livepatch-SLE15-SP7_Update_24 · sles 15.7 1-150700.15.3.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-obs-build · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-source · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-syms · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
kernel-uek · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-core · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-core · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-core · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-core · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-devel · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-devel · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-core · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-core · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-deprecated · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-deprecated · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-desktop · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-desktop · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-extra · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-extra · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-extra-netfilter · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-extra-netfilter · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-usb · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-usb · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-wireless · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-debug-modules-wireless · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-devel · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-devel · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-doc · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-doc · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-core · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-core · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-deprecated · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-deprecated · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-desktop · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-desktop · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-extra · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-extra · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-extra-netfilter · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-extra-netfilter · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-usb · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-usb · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-wireless · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-modules-wireless · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-tools · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek-tools · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-core · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-core · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-devel · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-devel · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-core · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-core · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-deprecated · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-deprecated · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-desktop · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-desktop · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-extra · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-extra · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-extra-netfilter · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-extra-netfilter · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-usb · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-usb · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-wireless · ol 10 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-uek64k-modules-wireless · ol 9 0:6.12.0-207.111.5.1.el9uek ELSA-2026-500374 Oct 7, 2026
kernel-zfcpdump · sles 15.7 6.4.0-150700.53.90.1 SUSE-SU-2026:5091-1 Nov 7, 2026
linux · Debian 12.15 (bookworm) 6.1.190-1 DEBIAN-CVE-2026-89787 Sep 23, 2026
linux · Debian 13.5 (trixie) 6.12.111-1 DEBIAN-CVE-2026-89787 Sep 23, 2026
linux · Debian 14 7.2.6-1 DEBIAN-CVE-2026-89787 Sep 23, 2026
linux-6.12 · Debian 12.15 (bookworm) 6.12.111-1~deb12u1 DEBIAN-CVE-2026-89787 Sep 23, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.