Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-10657: bounds in zephyrproject zephyr

0
Low
VulnerabilityCVE-2026-10657cvecve-2026-10657
Published: 07/05/2026 (07/05/2026, 22:23:37 UTC)
Source: CVE Database V5
Vendor/Project: zephyrproject
Product: zephyr

Description

Zephyr's DNS resolver detects mDNS (.local) queries in dns_resolve_name_internal() (subsys/net/lib/dns/resolve.c) with memcmp(strrchr(query, '.'), ".local", 7), which always reads a fixed 7 bytes from the suffix pointer. When the resolved hostname'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'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, ".local").

CVSS v3.1

Score 3.7low

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

GitHub Actionsmore threats →cve
zephyr
pkg:github/zephyr
Affected versions
>=1.10.0 <4.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/05/2026, 23:06:29 UTC

Technical Analysis

Zephyr's DNS resolver function dns_resolve_name_internal() uses memcmp with a fixed length of 7 bytes to detect mDNS queries ending with ".local". When the hostname's final label is shorter than 7 bytes, this causes a read beyond the string's NUL terminator, potentially crossing allocation boundaries and causing a fault if the memory beyond is unmapped. The hostname input is controllable by callers via getaddrinfo and related APIs. This vulnerability exists only if CONFIG_MDNS_RESOLVER is enabled and affects versions from 1.10.0 through before 4.5.0. The issue is resolved by switching from memcmp to a NUL-safe strcmp for the suffix comparison.

Potential Impact

The vulnerability can cause a denial of service by triggering a memory access fault when the DNS resolver reads beyond the allocated buffer boundary. There is no impact on confidentiality or integrity, as the over-read bytes are never returned or exposed. Exploitation does not require privileges or user interaction but does require the MDNS resolver feature to be enabled. No known exploits are reported in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability is fixed by replacing the fixed-length memcmp with a NUL-safe strcmp in the DNS resolver code. Users should verify if their Zephyr version includes this fix or upgrade to a version where the fix is applied. If upgrading is not immediately possible, disabling the CONFIG_MDNS_RESOLVER feature can mitigate the issue by avoiding the vulnerable code path.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
zephyr
Date Reserved
2026-06-02T15:24:32.170Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4ae01927e9c79719f45653

Added to database: 07/05/2026, 22:52:09 UTC

Last enriched: 07/05/2026, 23:06:29 UTC

Last updated: 07/05/2026, 23:37:11 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses