FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- Capsicum and O_RESOLVE_BENEATH bypass at mount roots

Affected packages
15.1 <= FreeBSD-kernel < 15.1_7

Details

VuXML ID b1803084-e311-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

To resolve ".." from the root of a mounted file system, the kernel first steps to the directory on which that file system is mounted, then looks up ".." there. The check for leaving the starting directory compared against the mount point rather than the root of the mounted file system. If the starting directory was itself the root of a mounted file system, the check never matched, and the lookup escaped to the parent of the mount point.

Impact:

A sandboxed process, or a program relying on O_RESOLVE_BENEATH or AT_RESOLVE_BENEATH, whose starting directory is the root of a mounted file system can access any file under its root directory. The descriptor's rights and normal file system permissions still apply. Lookups that start in any other directory are not affected.

References

CVE Name CVE-2026-101312
FreeBSD Advisory SA-26:81.vfs