CVE-2026-46078

erofs: fix the out-of-bounds nameoff handling for trailing dirents

HIGH
7.1
CVSS Score
Published: May 27, 2026 at 12:58 PM UTC
Updated: October 19, 2026 at 08:18 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.19 ≤ v < 5.10.2595.11 ≤ v < 5.15.2105.16 ≤ v < 6.1.1756.13 ≤ v < 6.18.276.19 ≤ v < 7.0.46.2 ≤ v < 6.6.1406.7 ≤ v < 6.12.863aa8ec716e52c02360457fa018296629b4d0becf4.19
Vendor states this is fixed in 1d55445226c75ddd4e78b09b3e7d99109b28c366 (fixed)
Vendor states this is fixed in 222055e6b4063abd2d9e13c3d49bbd1724c50789 (fixed)
Vendor states this is fixed in 48b27a955d22391c7f30169fa7b6b2e1977f1ce4 (fixed)
Vendor states this is fixed in 80a23c6d1aba35be8746d74ac14e6ba5ae46da21 (fixed)
Vendor states this is fixed in 8ebb951a284b7446e025afc7dc5e9516ef9a7214 (fixed)
Vendor states this is fixed in a8ee527807f7d97e55ce2ef2906f7f34975eb1c7 (fixed)
Vendor states this is fixed in aa16dca1b062355181ef215229eeac249d7c0d61 (fixed)
Vendor states this is fixed in d18a3b5d337fa412a38e776e6b4b857a58836575 (fixed)
Vendor states this is fixed in 4.19 (unaffected)
Vendor states this is fixed in 5.10.259 (unaffected)
Vendor states this is fixed in 5.15.210 (unaffected)
Vendor states this is fixed in 6.1.175 (unaffected)
Vendor states this is fixed in 6.12.86 (unaffected)
Vendor states this is fixed in 6.18.27 (unaffected)
Vendor states this is fixed in 6.6.140 (unaffected)
Vendor states this is fixed in 7.0.4 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.1HIGHLinux
Vector?

Quick Info

StatusUNDERGOING ANALYSIS
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card