PT-2026-161680
CVE-2026-104377
·
Published
2026-11-29
·
Updated
2026-11-29
Description by
CVSS 3.1
3.7
LowMetricsAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions
Zephyr (affected versions not specified)
Description
The TFTP client library in
subsys/net/lib/tftp/tftp client.c fails to verify that server ERROR packets are NUL-terminated before reporting them to the application via a TFTP EVT ERROR event. The evt.param.error.msg field points to client->tftp buf + TFTP HEADER SIZE without a length check. A malicious server or an attacker capable of injecting UDP datagrams can send a full-size 516-byte ERROR datagram without a terminator. This causes string operations, such as logging, to read past the end of the tftpc structure until a zero byte is encountered. Additionally, a 4-byte ERROR packet without a message can expose stale buffer contents from previous packets. This leads to an out-of-bounds read of memory adjacent to the tftpc object, which may disclose sensitive memory contents or cause a system fault if protected memory is accessed. The issue involves the tftp get(), tftp put(), and send data() functions.Recommendations
As a temporary mitigation, restrict the use of the
tftp get(), tftp put(), and send data() functions when communicating with untrusted TFTP servers.
At the moment, there is no information about a newer version that contains a fix for this vulnerability. Found an issue in the description? Have something to add? Feel free to write us 👾