Home › CVE › Vulnerabilities
CVE-2026-104377 — zephyrproject zephyr
One of 10 zephyrproject zephyr vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
The Zephyr TFTP client library (subsys/net/lib/tftp/tftp_client.c) reports server ERROR packets to the application through a TFTP_EVT_ERROR event whose evt.param.error.msg field is a bare char * pointing at client->tftp_buf + TFTP_HEADER_SIZE, with no length. RFC 1350 requires the ERROR message to be NUL-terminated, but tftp_get(), tftp_put() and send_data() never checked or enforced this before invoking the callback. A TFTP server (or an on-path/spoofing attacker able to inject a UDP datagram from the server's address) can answer a client request with a full-size 516-byte ERROR datagram whose message has no terminator. The callback then receives a string that runs to the end of tftp_buf, which is the last member of the application-owned struct tftpc, so any string operation on it (for example the %s logging done by the in-tree sample and net tftp shell callbacks) reads past the end of the object until a stray zero byte is found. A 4-byte ERROR with no message similarly exposes stale, possibly unterminated buffer contents from the previous packet. The impact is an out-of-bounds read of memory adjacent to the struct tftpc object in the context of the application callback. Depending on what the application does with the message, this can disclose adjacent memory (e.g. into logs or anything the application forwards) or fault if the read reaches unmapped or protected memory. No out-of-bounds write is possible. The fix NUL-terminates the message inside tftp_buf at the received length, clamped to the last byte of the buffer.
Severity breakdown
Low · 3.7
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- low on confidentiality, none on integrity and availability
Weakness
- CWE-125: Out-of-bounds Read
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| zephyrproject zephyr | ≥ 3.4.0, < 4.3.2 | 4.3.2 |
| ≥ 4.4.0, < 4.5.0 | 4.5.0 |
References by type
Vendor advisories
Patches and fixed releases
Affected
- zephyrproject zephyr
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-104377?
The Zephyr TFTP client library (subsys/net/lib/tftp/tftpclient.c) reports server ERROR packets to the application through a TFTPEVTERROR event whose evt.param.error.msg field is a bare char pointing at client->tftpbuf + TFTPHEADERSIZE, with no length. RFC 1350 requires the ERROR message to be NUL-terminated, but tftpget(), tftpput() and senddata() never checked or enforced this before invoking the callback. Weakness type: Out-of-bounds Read (CWE-125).
How severe is CVE-2026-104377?
CVE-2026-104377 has a CVSS 3.1 base score of 3.7 (low), from the CNA (zephyrproject.org). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-104377 being exploited?
Not as far as is known: CVE-2026-104377 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026.
Which versions are affected by CVE-2026-104377?
zephyrproject zephyr ≥ 3.4.0, < 4.3.2 (fixed in 4.3.2); zephyrproject zephyr ≥ 4.4.0, < 4.5.0 (fixed in 4.5.0).
How do I fix CVE-2026-104377?
Update to a fixed release: zephyrproject zephyr 4.3.2; zephyrproject zephyr 4.5.0.