CVE-2026-102952 in Zephyrinfo

Summary

by MITRE • 11/23/2026

The Zephyr TFTP client in subsys/net/lib/tftp/tftp_client.c does not check where the reply to its request comes from. After sending a read or write request to the configured server, send_request() accepts the first UDP datagram that arrives on the client's socket from any address and port. It then calls zsock_connect() to that sender, so the sender becomes the peer for the rest of the transfer. RFC 1350 requires a client to discard datagrams whose source does not match the transfer ID it expects.

A host that can send a UDP datagram to the client's ephemeral port before the real server replies can take over the transfer. It can reply from its own address and does not need to spoof the server. A host on the same network segment that sees the request can do this easily. An off-path attacker must guess the randomized ephemeral port and win the race, which is easier when the server is slow or unreachable. No authentication or user interaction is needed beyond the device starting a transfer through tftp_get() or tftp_put(), for example from an application or the net tftp shell command.

For tftp_get(), the attacker chooses the entire content handed to the application's data callback. For tftp_put(), the whole upload buffer is sent to the attacker. There is no memory corruption. TFTP itself has no authentication, and after the fix an attacker who can spoof the server's IP address can still interfere with a transfer. The fix checks the server's address on the first reply and the full address and port on every later datagram, and drops mismatches without using up the transfer's retries.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability in the Zephyr TFTP client represents a critical failure in source validation within the Trivial File Transfer Protocol implementation located in subsys/net/lib/tftp/tftp_client.c. This flaw stems from an insufficient verification of the origin of incoming UDP datagrams during the initialization phase of a file transfer session. When the send_request function is invoked to initiate either a read or write operation, it establishes a socket connection and waits for responses from the configured TFTP server. However, instead of strictly validating that the first reply originates from the expected IP address associated with the target host, the client accepts the very first UDP datagram received on its ephemeral port regardless of its source identity. This behavior directly contradicts RFC 1350, which mandates that a TFTP client must discard any data packets whose source does not match the specific transfer ID and server address expected for that session. By failing to enforce this standard requirement, the implementation creates an opening for network-based attacks where the integrity of the file exchange is compromised before it even begins.

The operational impact of this flaw allows a malicious actor on the same local network segment or with sufficient off-path capabilities to hijack active TFTP sessions without requiring any authentication credentials or user interaction. For attackers positioned on the same broadcast domain, the exploitation is straightforward as they can monitor outgoing requests and immediately respond from their own address before the legitimate server has time to reply. Off-path attackers face a more complex challenge involving race conditions; they must guess the randomized ephemeral port used by the client and win the timing contest against the real server's response. This becomes significantly easier if the intended TFTP server is slow, unreachable, or experiencing high latency, as these conditions widen the window of opportunity for an attacker to inject a spoofed packet that will be accepted by the vulnerable client logic.

Once the attack succeeds in hijacking the connection through this source validation bypass, the consequences depend heavily on whether the operation was initiated via tftp_get or tftp_put. In the case of a download operation using tftp_get, the attacker gains complete control over the data stream received by the application's callback function, allowing them to deliver malicious payloads disguised as legitimate file content. Conversely, for upload operations utilizing tftp_put, the entire contents of the client's buffer are transmitted directly to the attacker-controlled host, resulting in a severe confidentiality breach where sensitive internal data is exfiltrated without detection. It is important to note that this vulnerability does not involve memory corruption or arbitrary code execution within the Zephyr kernel itself; rather, it exploits the protocol-level trust model of TFTP which inherently lacks encryption and strong authentication mechanisms.

Mitigation strategies focus on enforcing strict source address verification as implemented in the security patch for this issue. The fix requires the client to validate that the first reply originates from the correct server IP address before proceeding with the connection setup via zsock_connect. Furthermore, subsequent datagrams throughout the transfer must be verified against both the expected full address and port combination, ensuring that any packet deviating from these parameters is dropped immediately without consuming valuable retry timers. While this patch resolves the specific hijacking vector described here, organizations should remain aware that TFTP remains an insecure protocol by design due to its lack of built-in authentication and encryption. Therefore, additional network-level controls such as firewall rules restricting TFTP traffic to known trusted hosts or migrating to more secure alternatives like SCP or SFTP are recommended for long-term security posture improvement in environments where file transfer capabilities are required.

Responsible

Zephyr

Reservation

09/29/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00287

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!