Local Privilege Escalation via Linux Kernel X-mount.subdir Symlink Traversal
A local privilege escalation vulnerability in the Linux kernel (6.15+) allows unprivileged users to bypass filesystem boundary restrictions during mount operations via the X-mount.subdir option.
CVE search metadata
CVE search record: CVE-2026-78409. Severity: high. CVSS: 7.0. KEV: no. Product: Linux Kernel (>= 6.15). Brief: Local Privilege Escalation via Linux Kernel X-mount.subdir Symlink Traversal. Brief link: https://feed.craftedsignal.io/briefs/2026-09-linux-kernel-symlink-traversal/
A security vulnerability exists in the Linux kernel (version 6.15 and later) related to the implementation of the X-mount.subdir mount option. When an unprivileged user with fstab-authorized mounting permissions initiates a mount, the kernel utilizes a detached-tree fast path and passes the subdirectory path to the open_tree() system call with the AT_SYMLINK_NOFOLLOW flag. This implementation is insufficient because the flag fails to prevent intermediate symlink traversal or enforce strict path resolution boundaries within the newly mounted filesystem. Consequently, a local attacker can exploit this flaw to mount arbitrary host paths at designated mountpoints, resulting in unauthorized filesystem access and potential privilege escalation. This issue highlights a gap in kernel-level validation of mount paths when utilizing the fast-path mount mechanism.
Attack Chain
- An attacker identifies a system with an entry in /etc/fstab that allows an unprivileged user to mount a filesystem using the X-mount.subdir option.
- The attacker creates a malicious symlink in a directory under their control that points to a sensitive host filesystem location.
- The attacker executes the mount command referencing the fstab entry, specifying the malicious path as the subdirectory.
- The kernel enters the detached-tree fast path for the mount operation.
- The open_tree() function is called with the AT_SYMLINK_NOFOLLOW flag.
- Due to the vulnerability, the kernel follows the intermediate symlinks, bypassing the intended path restrictions.
- The sensitive host path is mounted at the attacker's chosen mountpoint.
- The attacker accesses the newly mounted sensitive files, enabling further exploitation or privilege escalation.
Impact
Successful exploitation allows a local unprivileged user to gain unauthorized access to sensitive files or directories outside their intended scope. In environments where unprivileged users are granted mount permissions via fstab, this vulnerability significantly undermines filesystem isolation. The impact is restricted to local systems running vulnerable Linux kernel versions (6.15 and later).
Recommendation
- Patch the Linux kernel to the latest version provided by the distribution vendor to address the open_tree() handling logic in CVE-2026-78409.
- Audit /etc/fstab entries to identify and restrict unprivileged users who currently possess 'user' or 'users' mount options.
- Monitor system audit logs for abnormal mount events and mount operations involving symlinks.
Immediate actions
Patch kernel to the latest non-vulnerable version
Mitigations
Review /etc/fstab and remove non-essential user-mount permissions
CVE-2026-78409