CVE-2026-46078
erofs: fix the out-of-bounds nameoff handling for trailing dirents
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
INFO
Published Date :
May 27, 2026, 2:17 p.m.
Last Modified :
June 24, 2026, 5:20 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Update the Linux kernel to the latest patched version.
- Verify EROFS filesystem integrity after patching.
- Review code for unchecked nameoff handling.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-46078.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-46078 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-46078
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-46078 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-46078 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jun. 24, 2026
Action Type Old Value New Value Added CWE CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.86 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.175 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.140 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.27 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.4 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.210 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.19 up to (excluding) 5.10.259 Added Reference Type kernel.org: https://git.kernel.org/stable/c/1d55445226c75ddd4e78b09b3e7d99109b28c366 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/222055e6b4063abd2d9e13c3d49bbd1724c50789 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/48b27a955d22391c7f30169fa7b6b2e1977f1ce4 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/80a23c6d1aba35be8746d74ac14e6ba5ae46da21 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/8ebb951a284b7446e025afc7dc5e9516ef9a7214 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a8ee527807f7d97e55ce2ef2906f7f34975eb1c7 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/aa16dca1b062355181ef215229eeac249d7c0d61 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d18a3b5d337fa412a38e776e6b4b857a58836575 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 19, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/a8ee527807f7d97e55ce2ef2906f7f34975eb1c7 Added Reference https://git.kernel.org/stable/c/aa16dca1b062355181ef215229eeac249d7c0d61 Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '80a23c6d1aba35be8746d74ac14e6ba5ae46da21', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '222055e6b4063abd2d9e13c3d49bbd1724c50789', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '48b27a955d22391c7f30169fa7b6b2e1977f1ce4', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '8ebb951a284b7446e025afc7dc5e9516ef9a7214', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '1d55445226c75ddd4e78b09b3e7d99109b28c366', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': 'd18a3b5d337fa412a38e776e6b4b857a58836575', 'versionType': 'git'}], 'programFiles': ['fs/erofs/dir.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.140', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.86', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.27', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.4', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/erofs/dir.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': 'a8ee527807f7d97e55ce2ef2906f7f34975eb1c7', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': 'aa16dca1b062355181ef215229eeac249d7c0d61', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '80a23c6d1aba35be8746d74ac14e6ba5ae46da21', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '222055e6b4063abd2d9e13c3d49bbd1724c50789', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '48b27a955d22391c7f30169fa7b6b2e1977f1ce4', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '8ebb951a284b7446e025afc7dc5e9516ef9a7214', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '1d55445226c75ddd4e78b09b3e7d99109b28c366', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': 'd18a3b5d337fa412a38e776e6b4b857a58836575', 'versionType': 'git'}], 'programFiles': ['fs/erofs/dir.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.140', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.86', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.27', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.4', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/erofs/dir.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '80a23c6d1aba35be8746d74ac14e6ba5ae46da21', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '222055e6b4063abd2d9e13c3d49bbd1724c50789', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '48b27a955d22391c7f30169fa7b6b2e1977f1ce4', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '8ebb951a284b7446e025afc7dc5e9516ef9a7214', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': '1d55445226c75ddd4e78b09b3e7d99109b28c366', 'versionType': 'git'}, {'status': 'affected', 'version': '3aa8ec716e52c02360457fa018296629b4d0becf', 'lessThan': 'd18a3b5d337fa412a38e776e6b4b857a58836575', 'versionType': 'git'}], 'programFiles': ['fs/erofs/dir.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.140', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.86', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.27', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.4', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/erofs/dir.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 01, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/80a23c6d1aba35be8746d74ac14e6ba5ae46da21 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 27, 2026
Action Type Old Value New Value Added 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 Added Reference https://git.kernel.org/stable/c/1d55445226c75ddd4e78b09b3e7d99109b28c366 Added Reference https://git.kernel.org/stable/c/222055e6b4063abd2d9e13c3d49bbd1724c50789 Added Reference https://git.kernel.org/stable/c/48b27a955d22391c7f30169fa7b6b2e1977f1ce4 Added Reference https://git.kernel.org/stable/c/8ebb951a284b7446e025afc7dc5e9516ef9a7214 Added Reference https://git.kernel.org/stable/c/d18a3b5d337fa412a38e776e6b4b857a58836575