Skip to main content
Vulnerability Database/CVE-2026-98067

CVE-2026-98067: Linux Kernel EROFS Privilege Escalation

CVE-2026-98067 is a privilege escalation vulnerability in the Linux kernel EROFS filesystem affecting LZ4 rolling decompression. This article covers technical details, affected versions, security impact, and mitigation steps.

Published:

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-98067 Overview

CVE-2026-98067 is a Linux kernel vulnerability in the EROFS (Enhanced Read-Only File System) subsystem. The flaw affects the LZ4 rolling decompression optimization, which was introduced to reduce the memory footprint of temporary pages during decompression of compressed extents. Upstream LZ4 implementations may copy long literals backward on x86 when source and destination ranges do not overlap. This behavior breaks the rolling window assumption and compromises data correctness. Kernel maintainers resolved the issue by disabling LZ4 rolling decompression entirely until stronger forward-copy guarantees are available.

Critical Impact

Breaks data correctness during EROFS LZ4 decompression on x86 systems, potentially returning incorrect file contents from compressed read-only extents.

Affected Products

  • Linux kernel with EROFS filesystem support
  • Systems using LZ4-compressed EROFS extents with rolling decompression enabled
  • x86 kernels relying on the upstream LZ4 decompression routines

Discovery Timeline

  • 2026-09-25 - CVE-2026-98067 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98067

Vulnerability Analysis

EROFS implements LZ4 rolling decompression to limit temporary page allocations when reading small amounts of data from a compressed pcluster. The approach relies on LZ4's LZ77 reference window of 64 KiB, allowing a bounded set of temporary pages to satisfy decompression requests. Without the optimization, a single 256 KiB compressed extent can require up to 146 additional pages per request in the worst case.

The vulnerability stems from an assumption that the upstream LZ4 literal copy path always proceeds in the forward direction for non-overlapping ranges. In practice, the memmove() used for literal copies on x86 may copy long literals backward based on address comparison. This behavior invalidates the rolling window model used by EROFS and can produce corrupted decompressed output.

Root Cause

The root cause is a mismatch between EROFS' rolling decompression contract and the actual byte-copy direction chosen by the upstream LZ4 implementation. EROFS does not control the LZ4 code path, so backward copies on non-overlapping ranges silently violate the rolling invariant.

Attack Vector

This is a data correctness issue triggered through normal filesystem read activity on affected EROFS images rather than a remote exploitation primitive. Any workload that performs small or random reads inside LZ4-compressed pclusters may encounter incorrect data.

No verified exploitation code is available. See the kernel references for technical details: Kernel Git Commit 82e664c, Kernel Git Commit c9a2db4b, and Kernel Git Commit ec52dfe.

Detection Methods for CVE-2026-98067

Indicators of Compromise

  • Checksum or integrity mismatches on files served from LZ4-compressed EROFS mounts
  • Application errors or crashes triggered by reading small ranges within compressed extents
  • Kernel versions predating the three fix commits while mounting EROFS LZ4 images

Detection Strategies

  • Inventory Linux hosts running EROFS with LZ4 compression and correlate kernel versions against the fix commits
  • Validate file content integrity on EROFS mounts by comparing read outputs against known-good hashes
  • Track kernel package versions in configuration management to flag hosts lacking the backported patches

Monitoring Recommendations

  • Monitor dmesg and kernel log sources for EROFS decompression warnings or I/O errors
  • Ingest kernel version telemetry into the SIEM to prioritize unpatched hosts
  • Alert on repeated read failures tied to EROFS-mounted paths in production systems

How to Mitigate CVE-2026-98067

Immediate Actions Required

  • Identify all systems mounting EROFS images that use LZ4 compression
  • Apply the stable kernel updates that disable LZ4 rolling decompression
  • Validate critical files on EROFS mounts after patching to confirm correct decompression

Patch Information

The fix disables LZ4 rolling decompression in EROFS to prioritize data correctness. The change is distributed across three stable commits: 82e664c, c9a2db4b, and ec52dfe. Rolling decompression may be reintroduced once the upstream LZ4 code guarantees forward copies for non-overlapping ranges or EROFS maintains its own LZ4 implementation.

Workarounds

  • Enable the EROFS reserved buffer pool for LZ4 decompression (commit 0f6273ab4637) to mitigate the higher runtime memory footprint introduced by disabling rolling decompression
  • Repackage affected EROFS images with alternative compression algorithms if memory pressure becomes a concern
  • Restrict EROFS LZ4 usage on memory-constrained systems until patched kernels are deployed
bash
# Verify kernel version and EROFS mounts after patching
uname -r
mount -t erofs
dmesg | grep -i 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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.