Linux Kernel EROFS File-Backed Mounts Stack Overflow Vulnerability

Vulnerability

A vulnerability in the Linux kernel's EROFS (Enhanced Read-Only File System) implementation can lead to a kernel stack overflow. This issue arises from file-backed mounts, where EROFS improperly manages the stacking of file system contexts. The vulnerability is present in the stable version of the Linux kernel that includes the problematic EROFS file-backed mount support.

Impact

The vulnerability could cause a kernel stack overflow, potentially leading to arbitrary code execution or a system crash.

Reproduction

To reproduce this vulnerability, mount an EROFS file system using the file-backed mount option. The file system will incorrectly allow nesting of file system contexts, including its own, without proper management of the stack depth. This can cause the stack depth to exceed the maximum limit, leading to a stack overflow.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for downloading the patched version are available on the Linux kernel official website.

Added: Dec 24, 2025, 12:13 PM
Updated: Dec 24, 2025, 12:13 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.