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

FreeBSD -- Privilege escalation via missing fdescfs(4) access checks

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

Problem Description:

fdescfs(4) did not implement access checks for its files, and did not verify that a descriptor was open for writing before changing the size of the underlying file. As a result, truncate(2) on /dev/fd/N succeeded even when descriptor N was open read-only. fdescfs(4) also checked the wrong Capsicum rights on the descriptor when changing file attributes.

Impact:

An unprivileged local user can truncate or extend any file which they are able to open for reading, including system files owned by root. This may allow privilege escalation or a Denial of Service (DoS).

References

CVE Name CVE-2026-127745
FreeBSD Advisory SA-26:91.fdescfs