Skip to main content

Zephyr RTOS CVE-2026-1678

CRITICAL
Out-of-bounds Write (CWE-787)
2026-03-05 vulnerabilities@zephyrproject.org
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position as DNS responder (spoof/MITM/rogue resolver)
  2. Delivery
    Device issues DNS query
  3. Exploit
    Return crafted malicious DNS response
  4. Execution
    Stale tailroom overflows label buffer
  5. Persist
    Out-of-bounds null write corrupts memory
  6. Impact
    Crash or potential code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires CONFIG_DNS_RESOLVER to be enabled on the target (the DNS resolver subsystem must be in use) and relies on the default build setting of assertions disabled - if assertions are enabled, the fault is caught rather than becoming an out-of-bounds write. Exploitation is reactive and positional: the device must initiate a DNS name resolution and the attacker must be able to deliver a crafted malicious DNS response (operating a hostile/MITM resolver or spoofing responses), so an attacker who cannot influence the device's DNS traffic cannot trigger it. No authentication is required (PR:N) and no user interaction is needed beyond the device's automatic DNS lookups.

Impact

The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H, score 9.8) describes a maximally severe remote unauthenticated memory-corruption flaw, and publicly available exploit code exists per the Zephyr GHSA advisory. However, the signals conflict on real-world urgency: EPSS is only 0.05% (17th percentile), indicating very low predicted exploitation probability, and the vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation. No SSVC decision data was provided in the input. The CVSS C:H rating also appears generous for the described bug: the flaw is a single out-of-bounds write of a null terminator past the DNS label buffer (CWE-787), which maps cleanly to integrity/availability (memory corruption, crash, potential code execution on constrained RTOS targets) but gives no direct confidentiality disclosure path - verify the C:H claim with the vendor. Exploitation is also reactive: it requires the target device to initiate a DNS resolution AND the attacker to deliver a crafted malicious DNS response (spoofing or a hostile/MITM resolver), which is a real positioning requirement not reflected in the AC:L rating. Net: a genuinely serious code-level defect in affected products where CONFIG_DNS_RESOLVER is enabled, but low EPSS and absence from KEV suggest this is a patch-on-normal-cycle priority for most defenders rather than an emergency, exploit-code availability notwithstanding.

Exploit ScenarioDerived

An attacker who can answer DNS queries for a Zephyr-based device - via a rogue/MITM DNS server or by spoofing UDP responses on the local network - returns a malicious DNS response with crafted compressed name labels. As the device's dns_unpack_name() appends labels using a stale cached tailroom value, the final null terminator is written past the buffer, corrupting adjacent memory and causing a crash or potential code execution. Public exploit code is referenced in the Zephyr security advisory (GHSA-536f-h63g-hj42).

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 15, 2026

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on any device built with CONFIG_DNS_RESOLVER enabled, because the function caches the buffer's remaining tailroom once and reuses that stale value while appending decompressed DNS labels, allowing the terminating null byte to land past the end of the buffer. Exploitation is remote and unauthenticated (CVSS:3.1/AV:N/AC:L/PR:N/UI:N) but reactive: the target must itself initiate a name lookup and the attacker must be positioned to answer it - by operating a hostile or man-in-the-middle resolver or spoofing responses - so an adversary who cannot influence the device's DNS traffic cannot trigger the fault. Publicly available exploit code exists per the Zephyr GHSA advisory, though the vulnerability is not confirmed actively exploited (no CISA KEV listing) and the EPSS score is low at 0.05% (17th percentile). Our independent assessment agrees on the network/unauthenticated/High-integrity/High-availability profile but rates confidentiality impact Low rather than High.

Earlier versions of this analysis (1)
v1 Mar 12, 2026 - 22:06 CVSS 9.4

DNS buffer overflow in Zephyr RTOS.

RemediationAI

Patch status is not independently confirmed from the available data: no exact fixed release version is provided here, and the only reference is the Zephyr security advisory GHSA-536f-h63g-hj42, which should be consulted for the upstream fix commit and the Zephyr release branches that carry it - treating that advisory as the primary remediation source rather than assuming a specific version. If upgrading Zephyr is not immediately possible, the most effective compensating control is to enable assertions (CONFIG_ASSERT) in the build: this converts the latent out-of-bounds write into a caught assertion failure, trading memory corruption for a controlled fault/abort at the resolver, which is acceptable for debug or safety-focused builds but not for production systems that must stay available, since it can panic the device. Second, disable CONFIG_DNS_RESOLVER on devices that do not require hostname resolution or use a statically configured DNS server address, eliminating the vulnerable code path entirely with the only side effect being loss of DNS-based name resolution. Third, reduce the attack surface for reactive exploitation by pinning lookups to a trusted, non-attacker-controllable resolver, enforcing encrypted or authenticated DNS where supported, and blocking spoofed/foreign DNS responses at the network boundary (for example via network segmentation or resolver response validation), recognizing that these reduce - but do not eliminate - the ability of an on-path or MITM adversary to deliver the malicious response that triggers the write.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Zephyr's DNS resolver is an optional networking subsystem (CONFIG_DNS_RESOLVER) that parses compressed DNS wire-format names, where a single name can be encoded as a chain of labels interleaved with compression pointers that reference earlier offsets in the packet. dns_unpack_name() reconstructs the fully qualified name by appending each label into a caller-supplied buffer; the defect is that the amount of free tailroom is computed once at entry and then reused for every append instead of being recalculated as the write cursor advances. Because the effective free space shrinks with each label while the cached figure does not, the length check passes when it should not, and the final null terminator is written one byte past the allocation - a CWE-787 out-of-bounds write. The bug is latent on default builds because assertions are disabled; where CONFIG_ASSERT is enabled, the failing invariant is trapped instead of corrupting adjacent memory. The affected component is the Zephyr OS itself (CPE cpe:2.3:o:zephyrproject:zephyr, wildcard versions), meaning any product or board running an affected Zephyr release with the DNS resolver compiled in inherits the exposure; the upstream disclosure is Zephyr security advisory GHSA-536f-h63g-hj42.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.4 CRITICAL

Remote unauthenticated via crafted DNS response (AV:N/PR:N/UI:N); a single null-byte OOB write yields high integrity/availability impact but no direct data disclosure, so C:L rather than C:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 15, 2026 - 23:26 NVD
9.4 (CRITICAL) 9.8 (CRITICAL)
PoC Detected
Mar 09, 2026 - 18:33 vuln.today
Public exploit code
CVE Published
Mar 05, 2026 - 07:16 nvd
CRITICAL 9.4

DescriptionNVD

dns_unpack_name() caches the buffer tailroom once and reuses it while appending DNS labels. As the buffer grows, the cached size becomes incorrect, and the final null terminator can be written past the buffer. With assertions disabled (default), a malicious DNS response can trigger an out-of-bounds write when CONFIG_DNS_RESOLVER is enabled.

Executive ViewAI

Why It Matters

A critical memory corruption vulnerability in the Zephyr RTOS DNS resolver affects any device built with CONFIG_DNS_RESOLVER enabled, potentially allowing remote unauthenticated attackers to crash or compromise those devices; publicly available exploit code exists, though active exploitation has not been confirmed. Organizations deploying Zephyr-based IoT or embedded systems face operational disruption and security risks if exploited. Leadership should prioritize mitigation given the absence of a vendor patch.

Business Impact: High
Compensating Controls

Disable CONFIG_DNS_RESOLVER if not needed; restrict DNS traffic to trusted resolvers and protect against DNS spoofing (e.g., DNSSEC, encrypted DNS); implement network segmentation; monitor for crashes or anomalous behavior.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Prevalence
Medium
popular open-source RTOS, large but embedded/IoT-specific footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Affected Products (CPE)NVD

cpe:2.3:o:zephyrproject:zephyr:*:*:*:*:*:*:*:*

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

CVE-2023-5184 HIGH POC
8.8 Sep 27

Two potential signed to unsigned conversion errors and buffer overflow vulnerabilities at the following locations in the

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy