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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/10xxx/CVE-2026-10773.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"introduced": "1.7.0"
},
{
"fixed": "4.5.0"
}
]
}
],
"cna_assigner": "zephyr",
"cwe_ids": [
"CWE-125",
"CWE-682"
]
}"2026-08-03T09:25:37Z"
[
{
"id": "CVE-2026-10773-4d48446d",
"signature_version": "v1",
"digest": {
"function_hash": "277616193722099052102066602920969727166",
"length": 267.0
},
"signature_type": "Function",
"target": {
"function": "net_dhcpv4_msg_type_name",
"file": "subsys/net/lib/dhcpv4/dhcpv4.c"
},
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/73c8a7df4f00088fc04ee5ab71bcabf47fcd3db7",
"deprecated": false
},
{
"id": "CVE-2026-10773-7472c081",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"24770291691023861843515758847361872923",
"52351945230979009086833437114057355425",
"208899030713602348851963383174812063020",
"311882597654240901332562886749590494174"
]
},
"signature_type": "Line",
"target": {
"file": "subsys/net/lib/dhcpv6/dhcpv6.c"
},
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/73c8a7df4f00088fc04ee5ab71bcabf47fcd3db7",
"deprecated": false
},
{
"id": "CVE-2026-10773-7a3a403d",
"signature_version": "v1",
"digest": {
"function_hash": "199462793810771570454438086193270188232",
"length": 294.0
},
"signature_type": "Function",
"target": {
"function": "net_dhcpv6_state_name",
"file": "subsys/net/lib/dhcpv6/dhcpv6.c"
},
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/73c8a7df4f00088fc04ee5ab71bcabf47fcd3db7",
"deprecated": false
},
{
"id": "CVE-2026-10773-b44d457c",
"signature_version": "v1",
"digest": {
"function_hash": "198147319299416108696269693901821504765",
"length": 278.0
},
"signature_type": "Function",
"target": {
"function": "net_dhcpv4_state_name",
"file": "subsys/net/lib/dhcpv4/dhcpv4.c"
},
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/73c8a7df4f00088fc04ee5ab71bcabf47fcd3db7",
"deprecated": false
},
{
"id": "CVE-2026-10773-bb51621c",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"23335669069177508657646137664929796357",
"186531158475003782121245424815783129744",
"208899030713602348851963383174812063020",
"254158629952562727888401640967514754036",
"216858646669899283477225869625883304658",
"48204210771004814656221013307187423543",
"69943021843060942512544381625143740980",
"194606497994712708314689398441959585556"
]
},
"signature_type": "Line",
"target": {
"file": "subsys/net/lib/dhcpv4/dhcpv4.c"
},
"source": "https://github.com/zephyrproject-rtos/zephyr/commit/73c8a7df4f00088fc04ee5ab71bcabf47fcd3db7",
"deprecated": false
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-10773.json"