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. 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).