Zephyrproject-rtos Zephyr
dns: memory‑safety issue in the DNS name parser
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by NVD · CWE-787
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
zephyrproject-rtos Zephyr
- < 3.7.2
- >= 4.0.0, < 4.2.2
- >= 4.3.0, < 4.3.1
Fixed in 3.7.2, 4.2.2, 4.3.1
Mitigation
Upgrade Zephyr to 3.7.2 or 4.2.2 or 4.3.1 or later.
References
- Vendor advisory github.com/zephyrproject-rtos/zephyr/security/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.