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-97605 Overview
CVE-2026-97605 is a Linux kernel vulnerability in the Enhanced Read-Only File System (erofs) LZMA decompression subsystem. The flaw resides in the pool-resize path that manages LZMA stream decoders. When the resize routine frees each stream's old decoder before allocating its replacement, a failed allocation can leave a stream with a NULL state while the global maximum dictionary size (z_erofs_lzma_max_dictsize) is advanced as if the resize succeeded. A subsequent mount can select the broken stream and pass NULL to xz_dec_microlzma_reset(), triggering a null pointer dereference in kernel context.
Critical Impact
A failed memory allocation during erofs LZMA pool resizing leaves kernel decoder state corrupted, enabling a null pointer dereference on later erofs operations.
Affected Products
- Linux kernel versions containing the erofs LZMA pool-resize code path
- Systems mounting erofs filesystems compiled with LZMA (CONFIG_EROFS_FS_ZIP_LZMA) support
- Distributions shipping affected stable kernels prior to the referenced fix commits
Discovery Timeline
- 2026-09-25 - CVE-2026-97605 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97605
Vulnerability Analysis
The erofs LZMA subsystem maintains a pool of per-stream decoder states to decompress on-disk data. When the filesystem requires a larger dictionary, the pool-resize path iterates every stream, frees the existing decoder, and allocates a replacement sized for the new dictionary. The ordering of these two operations creates the vulnerability.
If allocation of a replacement decoder fails after one or more streams have already been upgraded, the failed stream is reinserted into the pool with state == NULL. The function nevertheless advances z_erofs_lzma_max_dictsize to the requested value as though every stream had been successfully resized. The pool is left in an inconsistent state: the global maximum reflects the new size, but at least one stream has no backing decoder at all.
Any subsequent LZMA decompression operation that selects the broken stream calls xz_dec_microlzma_reset() with a NULL state pointer. This dereference occurs in kernel context on behalf of a mounted erofs volume. Retries at the same dictionary size short-circuit because the global maximum already satisfies the request, so the invalid stream is never repaired.
Root Cause
The root cause is unsafe resource replacement ordering combined with inconsistent global state updates. Freeing the old decoder before confirming the replacement allocation creates a window where failure cannot be rolled back cleanly. Advancing z_erofs_lzma_max_dictsize unconditionally compounds the issue by preventing a healing retry.
Attack Vector
Triggering the condition requires memory allocation pressure during an erofs LZMA pool resize, followed by decompression activity against a mounted erofs volume. The resulting null pointer dereference can produce a kernel oops and denial of service. Exploitability for privilege escalation would depend on kernel configuration and the ability of a local actor to influence allocation outcomes and erofs mounts.
The upstream fix allocates each replacement before freeing the old decoder, retains one old decoder during allocation, stops at the first failure, and only advances the global maximum once every stream satisfies the request. Each stream's dictionary capacity is now recorded so retries can skip streams that were already enlarged before a partial failure.
Detection Methods for CVE-2026-97605
Indicators of Compromise
- Kernel oops or panic messages referencing xz_dec_microlzma_reset or erofs decompression paths
- dmesg entries showing allocation failures (-ENOMEM) immediately preceded by erofs LZMA pool resize activity
- Repeated erofs read failures on volumes that previously mounted successfully
Detection Strategies
- Audit running kernel versions against the fix commits 0b3c8c3, 38e9e07, 604ce54, and 617d0d8 referenced in the kernel.org advisories
- Monitor system logs for BUG: unable to handle kernel NULL pointer dereference entries correlated with erofs mounts
- Inventory hosts and container images that mount erofs volumes using LZMA compression
Monitoring Recommendations
- Centralize kernel log collection and alert on oops signatures involving erofs or xz decoder functions
- Track kernel package versions across the fleet to confirm patch rollout
- Watch for repeated memory pressure events on hosts that regularly mount or resize erofs images
How to Mitigate CVE-2026-97605
Immediate Actions Required
- Apply the stable kernel updates referenced in the Linux Kernel Commit 0b3c8c3, Commit 38e9e07, Commit 604ce54, and Commit 617d0d8 advisories
- Prioritize patching hosts that mount erofs images from untrusted or user-controlled sources
- Reboot patched systems to activate the fixed kernel
Patch Information
The fix was committed to the Linux kernel stable trees. The patched code allocates each replacement decoder before freeing the previous one, retains one old decoder as a temporary fallback during allocation, stops at the first failed allocation, and defers advancing z_erofs_lzma_max_dictsize until all streams satisfy the request. Per-stream dictionary capacity is tracked so partial-failure retries skip already-enlarged streams.
Workarounds
- Avoid mounting erofs filesystems that use LZMA compression on unpatched kernels where feasible
- Reduce memory pressure on hosts that mount erofs volumes to lower the likelihood of resize allocation failures
- Rebuild the kernel without CONFIG_EROFS_FS_ZIP_LZMA if erofs LZMA support is not required
# Verify running kernel version and erofs LZMA support
uname -r
zcat /proc/config.gz | grep EROFS_FS_ZIP_LZMA
# After applying the vendor kernel update, reboot and reconfirm
sudo reboot
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

