Severity: Unknown
Affected Package: tftpd
Summary: Stack buffer overflow in tftp(1) and incomplete privilege drop in tftpd(8)
Two issues in the TFTP client and server shipped in the base system.
tftp(1) stack buffer overflow. send_rrq() and send_wrq() in libexec/tftpd/tftp-io.c (shared by the client) copy the requested file name and transfer mode into a fixed-size packet buffer on the stack with strlcpy(), but never check the return value and advance the write pointer by the full string length. A file name longer than the remaining buffer space causes writes past the end of the buffer. The affected functions are only reachable from the tftp(1) client, including through a tftp:// URL passed on the command line, so this is a local crash or memory corruption in the invoking user's process rather than a remote issue against tftpd(8).
tftpd(8) incomplete privilege drop. When started as root without -u, tftpd dropped supplemental groups but never called setgid(), so the effective group id remained that of the starting process (normally wheel). Files served or written by the daemon were accessed with group wheel privileges rather than nobody.
Run tftpd(8) with -u
No specific recommendations provided.
Aliases:
Published: October 20, 2026
Last Modified: October 20, 2026