CVE-2026-46078·Kernel vulnerability
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
- high
- Software
- Kernel
- Fixed in
- 7.0.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-46078 scores 7.1 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.0.4
Fixed in: 7.0.4
How to fix this CVE
Update your Linux kernel to version 7.0.4 or later to patch a directory entry parsing vulnerability in EROFS filesystems. This vulnerability allows malicious or corrupted EROFS filesystem images to trigger out-of-bounds memory reads during directory traversal. Apply the kernel update and reboot your system to complete remediation.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with: uname -r — if it shows 6.19.x through 7.0.3, your system is vulnerable
- Step 2: Verify EROFS filesystem support is enabled with: grep CONFIG_EROFS /boot/config-$(uname -r) — if it returns 'y', the vulnerable code is compiled
- Step 3: Check for EROFS mounts with: mount | grep erofs — if results appear, your system actively uses the vulnerable filesystem
- Step 4: After updating the kernel, verify the fix with: uname -r — confirm version is 7.0.4 or higher, then reboot to activate the patched kernel
FAQ
What is CVE-2026-46078?
This vulnerability affects the EROFS filesystem driver in Linux kernels, where malformed directory entries with invalid nameoff values can cause out-of-bounds memory reads, potentially leading to information disclosure or denial of service.
Is CVE-2026-46078 being actively exploited?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, but it can be triggered by mounting a specially crafted EROFS image.
What versions of Kernel are affected by CVE-2026-46078?
Linux kernel versions 6.19 through 7.0.3 are vulnerable; version 7.0.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-46078?
Run: uname -r — if the output shows a version between 6.19.0 and 7.0.3, check grep CONFIG_EROFS /boot/config-$(uname -r) to confirm EROFS support is enabled (y = vulnerable).
Does Defensia detect CVE-2026-46078?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-46078 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1d55445226c75ddd4e78b09b3e7d99109b28c366
- https://git.kernel.org/stable/c/222055e6b4063abd2d9e13c3d49bbd1724c50789
- https://git.kernel.org/stable/c/48b27a955d22391c7f30169fa7b6b2e1977f1ce4
- https://git.kernel.org/stable/c/80a23c6d1aba35be8746d74ac14e6ba5ae46da21
- https://git.kernel.org/stable/c/8ebb951a284b7446e025afc7dc5e9516ef9a7214
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-46078. Free for 1 server.
Get started free