CVE-2026-46078
erofs: fix the out-of-bounds nameoff handling for trailing dirents
Reported by linux · Published May 27, 2026
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| kernel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel-livepatch-6.18.30-61.116 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-livepatch-6.1.175-219.357 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.30-61.116.amzn2023 |
| Linux | Linux | aa16dca1b062355181ef215229eeac249d7c0d61, a8ee527807f7d97e55ce2ef2906f7f34975eb1c7, 80a23c6d1aba35be8746d74ac14e6ba5ae46da21, 4.19, 222055e6b4063abd2d9e13c3d49bbd1724c50789 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3aa8ec716e52c02360457fa018296629b4d0becf, 3aa8ec716e52c02360457fa018296629b4d0becf, 3aa8ec716e52c02360457fa018296629b4d0becf |
| Linux | Linux | 4.19, 0, 5.10.259 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-livepatch-6.18.30-61.116 | 0 |
| amazon:2023 | kernel-livepatch-6.1.175-219.357 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| Linux | Linux | 5.10.259, 3aa8ec716e52c02360457fa018296629b4d0becf, 3aa8ec716e52c02360457fa018296629b4d0becf |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
…and 17 more
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (15 in total, the first dated here)
- May 29, 2026 Security Advisory (131 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Jun 24, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-46078
vulnetix vdb fixes CVE-2026-46078
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-46078/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart