CVE-2026-46078
Awaiting Analysis Awaiting Analysis - Queue
EROFS Filesystem Out-of-Bounds Nameoff Handling

Publication date: 2026-05-27

Last updated on: 2026-06-01

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: erofs: fix the out-of-bounds nameoff handling for trailing dirents Currently we already have boundary-checks for nameoffs, but the trailing dirents are special since the namelens are calculated with strnlen() with unchecked nameoffs. If a crafted EROFS has a trailing dirent with nameoff >= maxsize, maxsize - nameoff can underflow, causing strnlen() to read past the directory block. nameoff0 should also be verified to be a multiple of `sizeof(struct erofs_dirent)` as well [1]. [1] https://sashiko.dev/#/patchset/20260416063511.3173774-1-hsiangkao%40linux.alibaba.com
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-27
Last Modified
2026-06-01
Generated
2026-06-16
AI Q&A
2026-05-27
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel to 20260416063511 (exc)
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's EROFS filesystem implementation. It involves improper handling of the 'nameoff' field for trailing directory entries (dirents). Although boundary checks exist for nameoffs, trailing dirents are special because their name lengths are calculated using strnlen() without verifying the nameoff value. If a crafted EROFS filesystem contains a trailing dirent with a nameoff greater than or equal to the maximum size, an underflow can occur when calculating maxsize - nameoff. This causes strnlen() to read beyond the directory block, potentially leading to out-of-bounds memory access.

Additionally, the nameoff0 value should be verified to be a multiple of the size of the erofs_dirent structure to prevent improper memory access.

Impact Analysis

This vulnerability can lead to out-of-bounds memory reads in the Linux kernel when processing specially crafted EROFS filesystems. Such out-of-bounds reads may cause system instability, crashes, or potentially expose sensitive kernel memory contents. This could be exploited by an attacker to gain information about the system or cause denial of service.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-46078. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart