Read the docs

Out-of-bounds read via unterminated TFTP ERROR message in Zephyr TFTP client

Priority LOW 18CWE-125Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-125 and the CVSS impact.

Summary

The Zephyr TFTP client library reports server ERROR messages to the application as a string without a length, and it does not enforce the NUL terminator that RFC 1350 requires. A TFTP server, or an on-path attacker able to inject a UDP datagram from the server's address, can send a full-size ERROR datagram with an unterminated message, so the application callback reads past the end of the client's buffer. The flaw is an out-of-bounds read (CWE-125) that can disclose adjacent memory or fault, and no out-of-bounds write is possible.

Written with Claude Haiku 5.5 from the sources below · 2026-11-29

Description from the CNA

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.

Why it matters now

EPSS 0.00331 18th percentileScored 2026-11-30
Fix Fixed zephyr (zephyrproject): 4.3.2, 4.5.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
zephyrprojectzephyr3.4.0 to before 4.3.2; 4.4.0 to before 4.5.04.3.2, 4.5.0Patch availableCNA
  • zephyr Vendorzephyrproject Affected 3.4.0 to before 4.3.2; 4.4.0 to before 4.5.0 Fixed in 4.3.2, 4.5.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*——zephyrproject
  • cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:* Versions — — ·zephyrproject

Remediation

Zephyr versions from 3.4.0 before 4.3.2 and from 4.4.0 before 4.5.0 are affected, and the fix is available in 4.3.2 and 4.5.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-29

  • Fix · CNA zephyr (zephyrproject) Fixed in 4.3.2, 4.5.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    zephyrproject zephyr 4.3.2, 4.5.0

    7 records Highest priority Priority LOW 7 LOW

    Other records, highest priority first

    • TI-2026-99578 Out-of-bounds write in Zephyr DesignWare I3C direct CCC handlingPriority LOW 37
    • TI-2026-99576 Use-after-free write in Zephyr kernel object core listPriority LOW 33
    • TI-2026-99574 Dangling stack pointer left as TCP receive callback after failed SOCKS5 connectPriority LOW 29

Timeline

  1. 2026-11-29 Threatist record created from CVE-2026-104377

References

  • TI-2026-04422 Out-of-bounds read/write in HTTP WebSocket upgrade via non-null-terminated Sec-WebSocket-Key CVSS 3.1CRITICAL 9.8
  • TI-2026-01361 dns: memory‑safety issue in the DNS name parser CVSS 3.1CRITICAL 9.8
  • TI-2026-09174 Unterminated URI buffer causes out-of-bounds read in LwM2M firmware pull (Package URI) CVSS 3.1CRITICAL 9.1
  • TI-2026-09168 Stack buffer overflow in `net_ipaddr_parse()` IPv4 address-with-port parsing in `subsys/net/ip/utils.c` CVSS 3.1CRITICAL 9.8
  • TI-2024-09625 net: lib: http_server: Buffer Under-read CVSS 3.1HIGH 8.6
  • TI-2021-02863 Usb bluetooth device ACL read cb buffer overflow CVSS 3.1CRITICAL 9.6
See all 399 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences