Cloudanix VulnDB

CVE-2025-68361

None

CVSS

—

EPSS

0.2%

Published

Dec 24, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in how the Linux kernel handles certain filesystem mounts can let an attacker crash the entire system by nesting mounts too deeply.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Denial Of Service
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Unrestricted filesystem stacking depth in erofs file-backed mounts allows recursive self-mounting that exhausts kernel stack space and triggers overflow.

Why it matters to the business

Systems may experience sudden kernel crashes or instability when untrusted or specially crafted filesystem images are mounted, leading to denial of service and potential data loss during recovery.

How an attack unfolds

An attacker supplies or induces mounting of an erofs image configured for deep nesting; the kernel follows the mount chain without depth checks until stack exhaustion occurs, crashing the system.

How to fix it

Update the Linux kernel to a version containing commit 34447aeedbaea8f9aad3da5b07030a1c0e124639 or later that enforces a stacking depth limit for erofs file-backed mounts. Rebuild and reboot affected systems after applying the update.

How to confirm the fix worked

Confirm the running kernel includes the depth-limiting change in fs/erofs; attempt a controlled self-mount test in an isolated environment and verify the operation is rejected before stack exhaustion.

Typical attack path

  1. Obtain or create an erofs image that references itself or another erofs image in a loop
  2. Trigger a file-backed mount of the image via local user, container runtime, or automated mount service
  3. Kernel performs repeated stacking operations without limit
  4. Stack overflow occurs resulting in kernel panic or oops

How to detect it

Review kernel logs for oops or panic messages containing erofs and stack overflow indicators; inspect mount operations and audit logs for repeated or nested erofs file-backed mounts from untrusted sources.

What your security team should do

  • Prioritize kernel updates on all systems that support erofs mounts
  • Restrict unprivileged users from performing filesystem mounts until patched
  • Monitor for kernel oops or panic events referencing erofs stack operations

The record

In the Linux kernel, the following vulnerability has been resolved: erofs: limit the level of fs stacking for file-backed mounts Otherwise, it could cause potential kernel stack overflow (e.g., EROFS mounting itself).

Affected packages

Ecosystem Package Introduced Fixed
Linux Kernel 6.12.0 6.12.63
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-azure 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.26.1.160000.2.7
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.26.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.26.1
openSUSE:Tumbleweed kernel-source 0 6.18.5-1.1
openSUSE:Tumbleweed kernel-source-longterm 0 6.18.16-1.1

Related vulnerabilities