CVE-2026-10773: Out-of-bounds read in DHCPv4 client message-type name lookup (net_dhcpv4_msg_type_name)

Published Aug 1, 2026
·
Updated

The DHCPv4 client helper netdhcpv4msgtypename() in subsys/net/lib/dhcpv4/dhcpv4.c indexes a static 8-element const char name table after a faulty bounds check. The guard used msgtype <= sizeof(name) instead of msgtype <= ARRAYSIZE(name); sizeof returns the byte size of the pointer array (32 on 32-bit, 64 on 64-bit targets) rather than the element count of 8, so message-type values from 9 up to that byte size pass the check and cause name[msgtype - 1] to read past the end of the array.

The msgtype value originates from the DHCP MESSAGE TYPE option, which is read as an unchecked raw byte from a received packet (netpktreadu8) and passed unmodified into the lookup. A DHCP server, or any host able to inject a spoofed DHCP reply onto the client's link, can therefore drive the index out of bounds. The out-of-range slot yields a garbage const char that is then dereferenced by a %s log conversion.

The lookup is reached only from a debug log statement (NETDBG / LOGDBG), so the out-of-bounds read is triggerable only when the DHCPv4 log module is built at DEBUG level (CONFIGNETDHCPV4LOGLEVELDBG), which is not the default configuration. When that condition holds, the result is an out-of-bounds read and a wild-pointer dereference: most likely a crash of the DHCP client (denial of service) and potentially disclosure of an adjacent pointer's contents through the log output. The fix replaces sizeof with ARRAYSIZE, restoring the correct 1..8 acceptance window.

Affected Software

2 affected components
net/lib/dhcpv4/dhcpv4.c (DHCPv4 client)
zephyrproject zephyr>=3.6.0<4.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Avoid building/running with DEBUG log level for DHCPv4 (disable CONFIG_NET_DHCPV4_LOG_LEVEL_DBG), since the out-of-bounds read is only reachable from a debug log statement.

    DHCPv4 logging module CONFIG_NET_DHCPV4_LOG_LEVEL_DBG = disabled
  2. Compensating control

    Ensure the client link cannot receive spoofed DHCP replies (e.g., use network controls to prevent unauthorized DHCP servers from injecting DHCPv4 replies onto the client's link).

Event History

Aug 1, 2026
CVE Published
via MITRE·12:21 PM
Data Sourced
via MITRE·12:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-10773?

CVE-2026-10773 has a medium severity score of 5.4.

2

What kind of vulnerability is CVE-2026-10773?

CVE-2026-10773 is an out-of-bounds read vulnerability in the DHCPv4 client message-type name lookup.

3

How can I mitigate CVE-2026-10773?

To mitigate CVE-2026-10773, ensure that the DHCPv4 client is using an updated version that addresses the bounds checking issue.

4

What software is affected by CVE-2026-10773?

CVE-2026-10773 affects the DHCPv4 client helper in the net/lib/dhcpv4/dhcpv4.c library.

5

What is the risk associated with CVE-2026-10773?

The risk level for CVE-2026-10773 is assessed as 34, indicating a potential for exploitation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203