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

FreeBSD -- tmpfs(4) fails to clear set-group-ID bit on new files

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 c0ecba9d-e313-11f1-a3e1-bc241121aa0a
Discovery 2026-11-17
Entry 2026-11-18

Problem Description:

tmpfs(4) did not clear the set-group-ID bit when a file was created by a user who was not a member of the file's group.

Impact:

An unprivileged local user with write access to a tmpfs(4) directory owned by a group they do not belong to can create a set-group-ID executable for that group, and so gain that group's privileges. For example, where /tmp is a tmpfs(4) mount, any local user can obtain the privileges of the wheel group, which owns /tmp.

References

CVE Name CVE-2026-127749
FreeBSD Advisory SA-26:94.tmpfs