Skip to main content
CVE Radar
public exploit

CVE-2026-89787

CVE-2026-89787 — ext4: check dir entry fits before reading the hash trailer in ext4_search_dir()

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.

Published Updated Sources: NVD, Linux (CNA), GitHub, GitHub Security Advisory, SOCRadar CTI

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Public exploit

exploit code published, no use observed

EPSS

0%

ahead of 0% of scored CVEs

Affects

Linux

16 products listed

CVSS base

Unscored

no source published a base score

Remediation

The vendor's own words where we have them.

Upgrade Linux to a fixed release (0 to < 5.13). Apply vendor patches per advisory and restrict external exposure of the affected component until patched.

First 24 hours

Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.

  • Identify exposed assets running affected vendor/product/version combinations.
  • Prioritize based on EPSS, PoC availability, and external exposure.
  • Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.

Affected scope

Vendor, product and version as the advisories word them.

Affected vendors, products and versions
VendorProductVersionsStatus
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500 to < 4d20106c536b73c4a8a02652dc85e35898baebf7Vulnerable
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500 to < 61a395967de06edba58760e81907a272db749faaVulnerable
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500Vulnerable
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500Vulnerable
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500 to < 3933884bc3102898b458c53fbd1ac52eb9cdb8a4Vulnerable
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500 to < 83663c0b739480c00cfe785675db87520ec484edVulnerable
LinuxLinux471fbbea7ff7061b2d6474665cb5a2ceb4fd6500Vulnerable
LinuxLinux5.13Vulnerable
LinuxLinux0 to < 5.13Patched
LinuxLinux5.15.221 to <= 5.15.*Patched
LinuxLinux6.1.188 to <= 6.1.*Patched
LinuxLinux6.6.157 to <= 6.6.*Patched

Public exploit

Capability, not use: code existing is a different claim from anyone running it.

PoC repos

1

Detection

Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.

  • Search application, proxy, and WAF logs for requests touching /ext4/namei.c:1435), /ext4/namei.c:1470), /ext4/namei.c:1268, /ext4/namei.c:1632), /ext4/namei.c:1703, /ext4/namei.c:1769), /namei.c:2842), /stat.c:353), /stat.c:538), /x86/entry/syscall_64.c:94), /x86/entry/entry_64.S:121).
  • Monitor for scanner or exploit-pattern traffic after 1 public PoC repositories were reported.

Timeline

What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.

  1. 2026
  2. Initial · CVE published

    Sep 16, 2026 · NVD

  3. Added · GHSA-cxfp-66mh-jhvv published (unknown)

    Sep 16, 2026 · GitHub Security Advisory

  4. CVE published by MITRE.

    Sep 16, 2026 · SOCRadar CTI

References

9 on the record

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1

What should defenders know first?

CVE-2026-89787 is ext4: check dir entry fits before reading the hash trailer in ext4_search_dir(), a unscored vulnerability affecting Linux from Linux. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-89787. Public exploit evidence is: 1 public PoC repositories reported; 0 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS null describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.