Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98005 Overview
CVE-2026-98005 is a Linux kernel vulnerability in the Enhanced Read-Only File System (EROFS) driver. The flaw stems from ambiguous encoding of inode_share cache keys, where the fingerprint and domain_id components were concatenated without a separator. This allowed the fingerprint bytes to be parsed as part of a domain_id, producing non-unique in-memory key indices. The upstream kernel maintainers resolved the issue by reordering the key as domain_id || '\0' || fingerprint, taking advantage of the NUL-terminated nature of domain_id strings to produce unambiguous keys.
Critical Impact
Ambiguous cache keys in the EROFS inode_share logic could cause distinct inodes to collide on the same key, leading to incorrect shared-domain behavior.
Affected Products
- Linux kernel (EROFS filesystem subsystem)
- Stable kernel branches receiving the referenced backports
- Distributions shipping EROFS with the pre-patch inode_share key encoding
Discovery Timeline
- 2026-09-25 - CVE-2026-98005 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98005
Vulnerability Analysis
EROFS supports sharing inode metadata across filesystem domains through an inode_share cache. Each cache entry is indexed by a key composed of a content fingerprint and a domain_id string. In the pre-patch implementation, the key was encoded by concatenating these components directly, in the form fingerprint || domain_id.
Because no delimiter separated the two components, the boundary between fingerprint and domain_id was not deterministic when parsing the composite key. Trailing bytes of the fingerprint could be interpreted as the start of a domain_id, allowing distinct (fingerprint, domain_id) tuples to produce colliding or indistinguishable key indices.
The fix reorders the composition to domain_id || '\0' || fingerprint. Because domain_id is a NUL-terminated string, the embedded \0 byte unambiguously marks the end of the domain identifier and the start of the fingerprint. The patches landed in commits 16322a67 and 96bf9831.
Root Cause
The root cause is missing delimitation between variable-length key components in a composite cache key. The design assumed callers would never produce fingerprints and domain_id pairs that aliased, but did not enforce that assumption structurally.
Attack Vector
No attack vector, exploitation technique, or security impact classification has been published for this entry at the time of writing. Neither NVD nor the referenced kernel commits assign a CWE, CVSS score, or exploitability analysis. The commit messages describe the change as a correctness and robustness improvement to the inode_share cache keying scheme.
The vulnerability is described in prose only. See the referenced kernel commits for the exact code changes.
Detection Methods for CVE-2026-98005
Indicators of Compromise
- No public indicators of compromise have been associated with CVE-2026-98005.
- No proof-of-concept exploit code is available in the referenced advisory data.
Detection Strategies
- Inventory running kernels and compare their build identifiers against the fixed commits 16322a67 and 96bf9831.
- Flag hosts mounting EROFS images that run kernel versions predating the stable backport of the fix.
- Review distribution security trackers for the mapping between upstream commits and vendor-shipped kernel package versions.
Monitoring Recommendations
- Monitor kernel log output (dmesg, journalctl -k) for EROFS subsystem warnings or inode cache anomalies.
- Track package update events for kernel packages across the fleet using existing endpoint telemetry.
- Subscribe to upstream linux-erofs and distribution kernel security feeds for follow-on fixes referencing the same subsystem.
How to Mitigate CVE-2026-98005
Immediate Actions Required
- Apply the kernel update from your Linux distribution that incorporates the referenced upstream commits.
- Prioritize patching on systems that mount EROFS images from multiple domains or untrusted sources.
- Validate kernel version alignment across container hosts and embedded devices that bundle EROFS, such as Android system images.
Patch Information
The fix is delivered as two upstream Linux kernel commits: 16322a67 and 96bf9831. Both change the inode_share key encoding to domain_id || '\0' || fingerprint. Downstream distributions ship the fix through their standard stable-tree backports; consult your vendor's kernel package changelog for the specific version containing the patch.
Workarounds
- No vendor-supplied workaround has been published; applying the kernel update is the supported remediation.
- Where immediate patching is not feasible, restrict mounting of EROFS images to trusted sources and avoid exposing EROFS mount capabilities to unprivileged users.
# Verify the running kernel version and EROFS module status
uname -r
modinfo erofs | grep -E '^(version|filename|srcversion):'
# Check for the fixed commits in a kernel source tree
git log --oneline 16322a67336cfeea0af4b05206ef8d0e0eda55bb \
96bf9831fbf423b8104f7948cd8fe7007ecfb46c -- fs/erofs/
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

