CVE-2025-68361
NoneCVSS
—
EPSS
0.2%
Published
Dec 24, 2025
CISA due date
—
Cloudanix analysis
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
- Obtain or create an erofs image that references itself or another erofs image in a loop
- Trigger a file-backed mount of the image via local user, container runtime, or automated mount service
- Kernel performs repeated stacking operations without limit
- 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
- CVE-2026-23226 In the Linux kernel, the following vulnerability has been resolved: ksmbd: add chann_lock… Also affects Kernel
- CVE-2026-23225 In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Don't… Also affects Kernel
- CVE-2026-23230 In the Linux kernel, the following vulnerability has been resolved: smb: client: split… Also affects Kernel
- CVE-2026-23224 In the Linux kernel, the following vulnerability has been resolved: erofs: fix UAF issue… Also affects Kernel
- CVE-2026-23227 In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use… Also affects Kernel
- CVE-2026-23223 In the Linux kernel, the following vulnerability has been resolved: xfs: fix UAF in… Also affects Kernel
- CVE-2026-23228 In the Linux kernel, the following vulnerability has been resolved: smb: server: fix leak… Also affects Kernel
- CVE-2026-23229 In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - Add… Also affects Kernel