CVE-2026-46078
erofs: fix the out-of-bounds nameoff handling for trailing dirents
Check your servers for CVE-2026-46078
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-46078 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.27% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-125 Out-of-bounds Read
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before a8ee527807f7d97e55ce2ef2906f7f34975eb1c7 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before aa16dca1b062355181ef215229eeac249d7c0d61 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before 80a23c6d1aba35be8746d74ac14e6ba5ae46da21 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before 222055e6b4063abd2d9e13c3d49bbd1724c50789 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before 48b27a955d22391c7f30169fa7b6b2e1977f1ce4 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before 8ebb951a284b7446e025afc7dc5e9516ef9a7214 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before 1d55445226c75ddd4e78b09b3e7d99109b28c366 affected from 3aa8ec716e52c02360457fa018296629b4d0becf, before d18a3b5d337fa412a38e776e6b4b857a58836575
Other versions: unaffected
|
| Linux |
affected 4.19 unaffected before 4.19 unaffected from 5.10.259 up to and including 5.10.* unaffected from 5.15.210 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.140 up to and including 6.6.* unaffected from 6.12.86 up to and including 6.12.* unaffected from 6.18.27 up to and including 6.18.* unaffected from 7.0.4 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-46078 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-46078
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-46078
trivy image --scanners vuln IMAGE | grep CVE-2026-46078
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a8ee527807f7d97e55ce2ef2906f7f34975eb1c7 git.kernel.org
- https://git.kernel.org/stable/c/aa16dca1b062355181ef215229eeac249d7c0d61 git.kernel.org
- https://git.kernel.org/stable/c/80a23c6d1aba35be8746d74ac14e6ba5ae46da21 git.kernel.org
- https://git.kernel.org/stable/c/222055e6b4063abd2d9e13c3d49bbd1724c50789 git.kernel.org
- https://git.kernel.org/stable/c/48b27a955d22391c7f30169fa7b6b2e1977f1ce4 git.kernel.org
- https://git.kernel.org/stable/c/8ebb951a284b7446e025afc7dc5e9516ef9a7214 git.kernel.org
- https://git.kernel.org/stable/c/1d55445226c75ddd4e78b09b3e7d99109b28c366 git.kernel.org
- https://git.kernel.org/stable/c/d18a3b5d337fa412a38e776e6b4b857a58836575 git.kernel.org
Source: the record CVE-2026-46078 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse