{"id":81555,"date":"2026-07-06T02:46:52","date_gmt":"2026-07-05T23:16:52","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-10657-out-of-bounds-read-in-zephyr-dns-resolver-mdns-suffix-check-memcmp-past-string-nul\/"},"modified":"2026-07-06T02:46:52","modified_gmt":"2026-07-05T23:16:52","slug":"cve-2026-10657-out-of-bounds-read-in-zephyr-dns-resolver-mdns-suffix-check-memcmp-past-string-nul","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-10657-out-of-bounds-read-in-zephyr-dns-resolver-mdns-suffix-check-memcmp-past-string-nul\/","title":{"rendered":"CVE-2026-10657 &#8211; Out-of-bounds read in Zephyr DNS resolver mDNS suffix check (memcmp past string NUL)"},"content":{"rendered":"<p>CVE ID :CVE-2026-10657<\/p>\n<p>  Published : July 5, 2026, 11:16 p.m. | 31\u00a0minutes ago<\/p>\n<p>  Description :Zephyr&#8217;s DNS resolver detects mDNS (.local) queries in dns_resolve_name_internal() (subsys\/net\/lib\/dns\/resolve.c) with memcmp(strrchr(query, &#8216;.&#8217;), &#8220;.local&#8221;, 7), which always reads a fixed 7 bytes from the suffix pointer. When the resolved hostname&#8217;s final label is shorter than 7 bytes (e.g. names ending in .org, .com, .net, .io, or a trailing dot), the comparison reads 1-2 bytes past the string&#8217;s NUL terminator. The hostname (query) is the caller-supplied name passed through the standard getaddrinfo()\/dns_get_addr_info()\/dns_resolve_name() path and is influenceable by operators or remote inputs (server names from configuration, parsed URLs, or app-facing interfaces). On a tightly-sized buffer with no slack (for example a userspace getaddrinfo call where the hostname is copied with k_usermode_string_alloc_copy to exactly strlen+1 bytes), the over-read crosses the allocation boundary; if that boundary is unmapped (guard page, memory-domain boundary under MPU, or an address sanitizer) the over-read faults, causing a denial of service. The over-read bytes are never returned, so there is no information disclosure. The flaw is compiled only when CONFIG_MDNS_RESOLVER is enabled, exists since v1.10.0, and is fixed by replacing the fixed-length memcmp with a NUL-safe strcmp(ptr, &#8220;.local&#8221;).<\/p>\n<p>  Severity: 3.7 | LOW<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-10657 Published : July 5, 2026, 11:16 p.m. | 31\u00a0minutes ago Description :Zephyr&#8217;s DNS resolver detects mDNS (.local) queries in dns_resolve_name_internal() (subsys\/net\/lib\/dns\/resolve.c) with memcmp(strrchr(query, &#8216;.&#8217;), &#8220;.local&#8221;, 7), which always reads a fixed 7 bytes from the suffix pointer. When the resolved hostname&#8217;s final label is shorter than 7 bytes (e.g. names ending in &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-81555","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=81555"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/81555\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=81555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=81555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=81555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}