Use-After-Free Vulnerability in Linux Kernel's ext4 Directory Handling
CVE-2026-89787
What is CVE-2026-89787?
A vulnerability in the Linux kernel's ext4 file system could allow an attacker to exploit directory entries through crafted data that bypasses safety checks. Specifically, this issue arises in the handling of casefolded encrypted directories. When an entry's name extends to the end of a block, the current checks fail to account for hash trailers, potentially leading to out-of-bounds reads. This flaw can trigger a use-after-free condition if the memory region following the directory block is accessed improperly. Developers are advised to implement checks to ensure that all components of directory entries, including their trailers, fit within their allocated space before processing them.
Affected Version(s)
Linux 471fbbea7ff7061b2d6474665cb5a2ceb4fd6500 < 4d20106c536b73c4a8a02652dc85e35898baebf7
Linux 471fbbea7ff7061b2d6474665cb5a2ceb4fd6500 < 61a395967de06edba58760e81907a272db749faa
Linux 471fbbea7ff7061b2d6474665cb5a2ceb4fd6500