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

FreeBSD -- Directory permission bypass via open(2)

Affected packages
15.1 <= FreeBSD-kernel < 15.1_7
14.5 <= FreeBSD-kernel < 14.5_4
14.4 <= FreeBSD-kernel < 14.4_13

Details

VuXML ID 8aedf1a9-e313-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

open(2) omits permission checks when it has just created the file being opened. When called with both O_CREAT and O_DIRECTORY on an existing directory, open(2) did not create anything, but still omitted the checks. As a result, a user could open a directory for reading or searching without the corresponding permission.

Impact:

An unprivileged local user can list the contents of directories they are not permitted to read, and access files within directories they are not permitted to search, subject to the permissions of those files and of the directory's ancestors.

References

CVE Name CVE-2026-127746
FreeBSD Advisory SA-26:92.vfs