Embedded TCP/IP stack vulnerabilities are packet-parsing and memory-management bugs in the small network stacks RTOS firmware links in, and three disclosures between June 2020 and 2021 (Ripple20, AMNESIA:33 and NAME:WRECK) showed that one crafted TCP, IP or DNS packet can crash or take over such a device.
A device maker handles them in three steps: prove which stack and version the image really ships, map that version to the project's own advisories and CERT/CC vulnerability notes, then rebuild, test and ship updated firmware.
Key takeaways
- They showed the same failure four times, in different code bases.
- The table lists the highest-scored CVEs per set and the fix each source names.
- Start from the build tree, because it is the only place the answer is exact.
- Each stack has its own channel, and none of them push a fix into a shipped device for you.
What did Ripple20, AMNESIA:33, NAME:WRECK and INFRA:HALT show?
They showed the same failure four times, in different code bases. CERT/CC's VU#257161 note on Ripple20, released 2020-06-16, says the Treck IP stack "contains multiple vulnerabilities, most of which are caused by memory management bugs", that a remote, unauthenticated attacker "may be able to use specially-crafted network packets to cause a denial of service, disclose information, or execute arbitrary code", and that the historically related KASAGO middleware from Zuken Elmic was also affected by some of them. Its example detection rule targets CVE-2020-11896 and CVE-2020-11900 through fragments inside an IP-in-IP tunnel: the bugs sit in rarely used corners of IP, not in application code.
Six months later, CERT/CC's VU#815128 note on AMNESIA:33, released 2020-12-08, listed 33 memory-related vulnerabilities across uIP, Contiki-OS and Contiki-NG, picoTCP, FNET and Nut/OS, and named the inheritance problem directly: projects such as Apache NuttX and open-iscsi "have adopted common libraries and software modules, thus inheriting some of these vulnerabilities". CISA's advisory for the same set, ICSA-20-343-01, scores three of the 33 at CVSS 9.8. The researchers' write-up is on Forescout's AMNESIA:33 page.
In 2021 Forescout and JSOF published NAME:WRECK, nine DNS-related vulnerabilities in four stacks: FreeBSD, Nucleus NET, NetX and IPnet. DNS is the common thread across these sets, because a device's DNS client parses attacker-influenced responses with hand-written code. That is the same class of bug our dnsmasq vulnerabilities guide covers on embedded Linux, where the parser sits in a separate daemon rather than inside the RTOS image.
A fourth set, INFRA:HALT, followed the same pattern in HCC Embedded's NicheStack. CERT/CC's VU#608209 note says 5 of its 14 vulnerabilities involve TCP and ICMP processing and the rest involve HTTP and DNS, and adds that "a lack of Software Bill of Materials (SBOM) has complicated this outreach and the much-needed identification of impacted devices".
Which CVEs and fixed versions belong to each disclosure?
The table lists the highest-scored CVEs per set and the fix each source names. CVSS scores are CISA's, from its ICS advisories as published in the CISA CSAF repository; KEV status is from CISA's catalog version 2026.11.13.
| Set | Highest-scored CVEs (CVSS v3) | Affected stack and version | Fix named by the source |
|---|---|---|---|
| Ripple20 (ICSA-20-168-01, 19 CVEs) | CVE-2020-11896 and CVE-2020-11897 (10.0), CVE-2020-11898 (9.1), CVE-2020-11901 (9.0, one invalid DNS response) | Treck TCP/IP before 6.0.1.66 per the CVE records and NVD (CVE-2020-11897: before 5.0.1.35) | Treck 6.0.1.67 or later, per CERT/CC and CISA; patches from Treck |
| Ripple20, KEV-listed | CVE-2020-11899 (5.4, IPv6 out-of-bounds read), added to KEV 2022-03-03 | Treck TCP/IP | Same Treck update |
| AMNESIA:33 (ICSA-20-343-01, 33 CVEs) | CVE-2020-24336 (uIP/Contiki), CVE-2020-24338 (picoTCP), CVE-2020-25111 (Nut/Net per CISA and CERT/CC), all 9.8 | Per CISA: uIP 1.0 (end of life), Contiki-OS ≤ 3.0 (end of life), Contiki-NG ≤ 4.5, picoTCP (end of life) and picoTCP-NG ≤ 1.7.0, FNET 4.6.3, Nut/Net ≤ 5.1 | Per project. Contiki-NG's fix for CVE-2020-24336 and picoTCP-NG's fix for CVE-2020-24338 were merged in September 2026, after each project's latest tagged release |
| NAME:WRECK, Nucleus NET | CVE-2020-27736, CVE-2020-27737, CVE-2020-27738, CVE-2021-25677 | Nucleus NET, Nucleus ReadyStart V3 before V2017.02.3 (CVE-2021-25677: before V2017.02.4), V4 before V4.1.0 | Siemens: update to Nucleus ReadyStart V3 V2017.02.3 (V2017.02.4 for CVE-2021-25677) or V4 V4.1.0 |
| NAME:WRECK, other stacks | CVE-2016-20009 (IPnet DNS client in VxWorks 6.5 to 7), CVE-2020-7461 (FreeBSD dhclient) | IPnet, FreeBSD | IPnet: the CVE record says only products no longer supported are affected; FreeBSD: patched releases such as 12.1-RELEASE-p9 |
| INFRA:HALT (ICSA-21-217-01, 14 CVEs) | CVE-2020-25928 (9.8, DNS response), CVE-2021-31226 (9.1 per CISA, 9.8 per NVD; HTTP server) | InterNiche/NicheStack and NicheLite before v4.3 | HCC Embedded v4.3 or later |
The sources do not always agree. For CVE-2020-25111, CISA's ICSA-20-343-01 and CERT/CC's VU#815128 describe a Nut/Net DNS-processing flaw, while the CVE record and NVD (read 2026-11-16) describe an IPv6 header-length check in Contiki through 3.0, reached with a crafted ICMPv6 echo packet; check both stacks if you ship either. For CVE-2021-31226, CISA's ICSA-21-217-01 scores the NicheStack HTTP POST overflow at 9.1 with no confidentiality impact (C:N/I:H/A:H), while NVD scores it 9.8 (C:H/I:H/A:H).
Siemens' SSA-705111 advisory names those four Nucleus CVEs and the ReadyStart versions; for the standalone Nucleus NET product it offers no update, only moving to ReadyStart V3 or V4 and the workaround "Avoid using DNS client of affected versions". CISA's INFRA:HALT advisory, ICSA-21-217-01, was first released 2021-08-05 and says "HCC recommends users apply release v4.3 or later".
How do you tell which TCP/IP stack a firmware image ships?
Start from the build tree, because it is the only place the answer is exact. A device maker usually has the MCU vendor SDK, the RTOS configuration and the linker map, and those name the stack and its version: lwIP's version macros sit in lwip/init.h, a Zephyr tree has a VERSION file and a west manifest, and a FreeRTOS project pulls FreeRTOS+TCP in as a named library. Write that component and version into the firmware SBOM at build time; recovering it later from a stripped binary is slow and uncertain.
When only the image is available, look for stack-specific strings and symbols, accepting that each clue is weaker on its own:
| Stack | Typical evidence in a binary or build | Who maintains it |
|---|---|---|
| lwIP | LWIP_VERSION macros in source; pbuf_, tcp_, netconn_ function names and assertion text when asserts or symbols survive |
lwIP project on Savannah |
| FreeRTOS+TCP | Public API names such as FreeRTOS_socket() and FreeRTOS_gethostbyname(); ipconfig settings in FreeRTOSIPConfig.h |
FreeRTOS project (AWS) |
| Zephyr native networking | "Booting Zephyr OS build" console banner; net_ and dns_ symbols |
Zephyr Project |
| uIP, Contiki-OS, Contiki-NG | uip_ function and buffer names |
Adam Dunkels's uIP repository; Contiki-NG project |
| Nut/Net (Nut/OS) | Nut/OS identifiers in Ethernut-based firmware | Ethernut project |
| Treck, KASAGO, Nucleus NET, NetX, IPnet, NicheStack | Often rebranded or renamed by the licensee; vendor statement is the reliable source | Commercial vendors |
The commercial rows are the hard case. CERT/CC's Ripple20 note says Treck code was licensed "compiled from source, licensed for modification and reuse and finally as a dynamic or static linked library", so the stack name may never appear in the image. Ask the module or SDK supplier for a written statement of which stack and version they ship.
Forescout's project-memoria-detector, which CERT/CC mentions in VU#815128, fingerprints 16 stacks over the network, including lwIP, NicheStack, Nucleus NET, uIP and picoTCP. It works actively: malformed ICMP echo requests, TCP option and Urgent-flag signatures, and HTTP, SSH and FTP banners. Its README warns that malformed ICMP packets "could crash a device that is running a different stack" and advises a lab or maintenance window, and its licence prohibits use "in derivative works for commercial purposes". Treat it as a first pass on a lab unit, never as proof of absence.
Where does each project publish fixes?
Each stack has its own channel, and none of them push a fix into a shipped device for you.
- lwIP. The lwIP Savannah project describes lwIP as "a small independent implementation of the TCP/IP protocol suite that has been initially developed by Adam Dunkels", aimed at systems "with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM", under a Modified BSD licence. Its bug tracker, patch tracker, Git repository and release downloads all live there; lwIP 2.2.1, released 6 February 2025, is "mostly a bugfix release, summing up all fixes of the last 1.5 years". lwIP has no security-advisory feed, so many MCU SDKs carry an older vendored copy: check whether your SDK supplier has pulled in an upstream fix before you assume your build has it.
- FreeRTOS+TCP. The repository's GitHub Security Advisories list each fixed issue with affected and patched versions. On 2026-04-29 five advisories (CVE-2026-7422 to CVE-2026-7426) covered MAC-address validation, ICMP echo replies, DHCPv6 sub-options and Router Advertisement parsing, fixed in V4.2.6 and V4.4.1. On 2026-10-16 two more followed for versions up to V4.4.1, fixed only in V4.4.2: Router Advertisements accepted without an on-link source check (CVE-2026-102551) and DNS replies accepted without checking they came from the queried server (CVE-2026-102552, GHSA-h4fw-pv82-p7h5).
- Zephyr. Zephyr's Vulnerabilities page lists every CVE with the pull requests that fixed it on main and on supported branches, and notes that the page "can be updated after the embargo is lifted", unlike version-locked release notes. CVE-2026-1678 is a memory-safety bug in the DNS name parser
dns_unpack_name(), where a malicious DNS response can cause an out-of-bounds write whenCONFIG_DNS_RESOLVERis enabled; it was fixed for v4.4.0 with backports to 4.3, 4.2 and 3.7. CVE-2026-7656, broken IPv6 Neighbor Discovery validation that let spoofed Router Advertisements through, was fixed for v4.5.0 and backported to v4.4, v4.3 and v3.7. The Zephyr Security Overview says vulnerabilities are "managed within Github security advisories". - uIP, Contiki, picoTCP, FNET, Nut/OS. CERT/CC's VU#815128 links each upstream project and carries per-vendor statements. CISA's ICSA-20-343-01 marks Contiki-NG 4.5 and earlier as affected, but Contiki-NG merged its CVE-2020-24336 fix (pull request #3254) to its develop branch on 2026-09-07, after its newest tag, release/v5.2 of 2026-08-14. picoTCP-NG merged its CVE-2020-24338 fix (pull request #82) to its master branch on 2026-09-11, and its newest tag, v2.1, dates from December 2020. No tagged release of either stack carries those fixes, so a build needs the branch commit or a backport. Some are final: one vendor statement in that note says patches "won't be provided since the affected product is end-of-life" for a product built on uIP 1.0.
- Treck, Nucleus, NicheStack. CERT/CC's VU#257161 says to update "to the latest stable version of Treck IP stack software (6.0.1.67 or later)" and to contact Treck, and CISA's ICSA-20-168-01 says "Update to 6.0.1.67 or later versions". The CVE records and NVD's CPE ranges for CVE-2020-11896 and CVE-2020-11901 instead mark Treck TCP/IP "before 6.0.1.66" as affected (NVD, read 2026-11-16), so a 6.0.1.66 build clears NVD matching while still sitting below the version CERT/CC and CISA name; treat it as affected until Treck confirms otherwise. Siemens ProductCERT and HCC Embedded publish the Nucleus and NicheStack fixes named in the table above. Downstream users should contact their embedded system vendor.
How should a device maker triage and patch a stack CVE?
Triage is about the configuration you actually built, because embedded stacks are compiled with most features switched off. CERT/CC makes this point in every note above; the Ripple20 note says impact "will vary due to the combination of build and runtime options".
Confirm the component and versionfrom the build tree or supplier statement, and record it in the SBOM. Check the feature gateA DNS resolver CVE does not apply if the resolver is compiled out; an IPv6 Router Advertisement bug does not apply to an IPv4-only build. Record that decision as a not-affected statement, as our CSAF and VEX guide describes. Check reachabilityA parser bug reachable from any packet on the local network is more urgent than one reachable only through a debug shell command. Prioritisewith CISA's KEV catalog and FIRST's EPSS score for each CVE, as our KEV and EPSS prioritisation guide explains. Of the four sets above, only CVE-2020-11899 is KEV-listed, so most stack CVEs are ranked on CVSS, EPSS and exposure. Patch at the sourceUpdate the stack to the fixed release, or backport the upstream fix if the SDK pins an older copy, then rebuild and regression-test the network path. Check the advisory for new configuration switches: the CVE-2026-102552 fix only takes effect once ipconfigDNS_CHECK_REPLY_SOURCE_IPis enabled inFreeRTOSIPConfig.h, because the advisory says the check "is disabled by default". Our memory corruption in embedded firmware guide covers the length-check patterns these fixes usually add.Ship and mitigateDeliver the rebuilt image through a signed update path (see firmware OTA update security). Until devices update, CERT/CC's Ripple20 note lists network mitigations: normalise or reject IP fragments, block IP-in-IP and IPv6-in-IPv4 tunnelling where unused, reject malformed TCP, and "normalize DNS through a secure recursive server". For IPv6 Router Advertisement bugs, the FreeRTOS+TCP advisory names RA Guard on the local link.
If the stack is a TLS-capable build, check its crypto library as well; our Mbed TLS and wolfSSL guide covers that half of the network path.
What does triage look like on one RTOS device? A worked example
Synthetic example, for illustration only. A sensor gateway runs FreeRTOS with FreeRTOS+TCP V4.2.3, pinned by the MCU SDK. The build enables IPv4, IPv6, Router Advertisement processing and the DNS client, and compiles DHCPv6 out. Conditions in the table are quoted from each FreeRTOS+TCP advisory.
| CVE | Advisory condition | Applies to this build? | Action |
|---|---|---|---|
| CVE-2026-7426 (RA out-of-bounds write) | V4.0.0 to V4.2.5; device processes Router Advertisements | Yes | Upgrade |
| CVE-2026-7424 (DHCPv6 sub-option underflow) | Same versions; DHCPv6 in use | No, DHCPv6 compiled out | Not-affected statement with the build flag as evidence |
| CVE-2026-102551 (RA source not checked) | Up to V4.4.1; ipconfigUSE_IPv6 and ipconfigUSE_RA enabled |
Yes | Upgrade to V4.4.2; interim: disable RA if addresses can be static |
| CVE-2026-102552 (DNS reply source not checked) | Up to V4.4.1; IPv6 and DNS enabled | Yes | Upgrade to V4.4.2 and enable ipconfigDNS_CHECK_REPLY_SOURCE_IP |
| CVE-2024-38373 (DNS response over-read) | 4.0.0 and 4.1.0 | No, V4.2.3 is later | None |
Moving to V4.2.6 would close CVE-2026-7426 but not the two October advisories, which name only V4.4.2 as fixed, so the team moves the gateway to V4.4.2, sets the new DNS option, runs IPv6 and DNS regression tests, and ships one signed update. The SBOM records the new version, and a VEX entry records why CVE-2026-7424 does not apply.
What are the common mistakes with embedded stack CVEs?
- Trusting a negative scan. A rebranded Treck or Nucleus copy will not match a stack name, and a fingerprinting tool only sees what answers on the wire.
- Upgrading without reading the patch note. CVE-2026-102552 stays open on V4.4.2 until its opt-in option is set.
- Stopping at the stable-branch update. V4.2.6 fixes the April 2026 FreeRTOS+TCP advisories, not the October ones.
- Assuming end-of-life code gets fixes. uIP 1.0 and Contiki-OS are end of life in CISA's AMNESIA:33 advisory; plan a stack migration, not a patch.
- Marking every CVE not-affected without evidence. A VEX statement needs the build flag or linker map that proves the code is absent.
AI-assisted analysis: what the scan does and does not do
SoftWSP's scan works from the firmware's software bill of materials. When the SBOM lists a network stack component and version, the scan matches that version against CVE records, CISA's KEV catalog, FIRST's EPSS scores and CISA's ICS advisories. That matching is deterministic code: the code scores, and AI narrates.
AI then writes the plain-language summary of which stack CVEs matched, which are KEV-listed or have high EPSS, and what version evidence each match rests on, citing the component, version and record behind every sentence. An engineer reviews every finding before the report is delivered. The steps this guide describes as manual stay with that engineer: identifying a stack compiled into a monolithic RTOS image that has no package record, getting a supplier statement for a rebranded commercial stack, and deciding whether a feature-gated CVE applies. Because matching is version-based, a build with the DNS resolver compiled out is still flagged for a DNS advisory until that review closes it.
For where this fits in a full assessment, see the OWASP Firmware Security Testing Methodology guide, or device & firmware security services to have a specific image reviewed.
This guide draws on CERT/CC vulnerability notes VU#257161, VU#815128 and VU#608209, CISA ICS advisories ICSA-20-168-01, ICSA-20-343-01 and ICSA-21-217-01 and the KEV catalog, Siemens SSA-705111, Forescout's research pages and project-memoria-detector README, the lwIP Savannah project page, the FreeRTOS-Plus-TCP security advisories and policy, and Zephyr's Vulnerabilities and Security Overview pages, all read directly on 2026-11-14.
Put this guide to work
Frequently asked questions
Which embedded TCP/IP stacks did Ripple20, AMNESIA:33 and NAME:WRECK affect?
Ripple20 (CERT/CC VU#257161, June 2020) affected the commercial Treck TCP/IP stack and, per CERT/CC, some of the same bugs reached the historically related KASAGO middleware from Zuken Elmic. AMNESIA:33 (CERT/CC VU#815128, December 2020) was 33 memory-related vulnerabilities in open-source stacks: uIP, Contiki-OS and Contiki-NG, picoTCP, FNET and Nut/Net from Nut/OS. NAME:WRECK (Forescout and JSOF, 2021) was nine DNS-related vulnerabilities in four stacks: FreeBSD, Nucleus NET, NetX and IPnet. lwIP, FreeRTOS+TCP and Zephyr's native networking were not part of those three sets, but each publishes its own security fixes, and Zephyr and FreeRTOS+TCP have both fixed DNS and IPv6 parsing bugs since.
How do I find out which TCP/IP stack my RTOS firmware uses?
Start from the build, not the binary: the vendor SDK, the RTOS configuration and the linked library list name the stack and usually its version, for example lwIP's version macros in lwip/init.h. If you only have the image, look for stack-specific strings and symbols: FreeRTOS+TCP's public API is FreeRTOS_socket(), FreeRTOS_gethostbyname() and similar, Zephyr images print a 'Booting Zephyr OS build' banner, and lwIP builds with assertions enabled keep pbuf_ and tcp_ function-prefixed messages. Commercial stacks are licensed and rebranded, so a missing name proves nothing; CERT/CC notes that Treck code was compiled from source, modified or linked as a library, and Forescout released an open-source detector for the stacks in its research for that reason.
Where are fixes for lwIP, FreeRTOS+TCP and Zephyr networking published?
lwIP is developed on the Savannah project page, which hosts its bug tracker, patch tracker, Git repository and downloads. FreeRTOS+TCP publishes GitHub Security Advisories on its repository and asks researchers to report issues to AWS Security rather than in public issues. Zephyr keeps a Vulnerabilities page in its documentation listing each CVE with the pull requests that fixed it, and manages new reports as GitHub security advisories. For Treck, CERT/CC says to update to version 6.0.1.67 or later and to contact Treck; for the AMNESIA:33 stacks, the CERT/CC note links each upstream project.
Does SoftWSP detect the TCP/IP stack inside a monolithic RTOS image automatically?
Not reliably, and it does not claim to. SoftWSP's scan works from the software bill of materials it builds or receives: when a component and version are identified, the scan matches them against CVE records, CISA's KEV catalog and FIRST's EPSS scores, and AI writes a plain-language summary that an engineer reviews. A bare-metal or RTOS image linked into one binary often has no package record for its network stack, so an engineer confirms the stack and version from the build or from strings, and decides whether a feature-gated CVE applies before the report ships.
Sources
- CERT/CC VU#257161: Treck IP stacks contain multiple vulnerabilities (Ripple20)
- CERT/CC VU#815128: Embedded TCP/IP stacks have memory corruption vulnerabilities (AMNESIA:33)
- CERT/CC VU#608209: NicheStack embedded TCP/IP has vulnerabilities (INFRA:HALT)
- Forescout Vedere Labs: AMNESIA:33
- Forescout Vedere Labs: NAME:WRECK
- lwIP: A Lightweight TCP/IP stack, Savannah project summary
- FreeRTOS-Plus-TCP: Security Advisories (GitHub)
- Zephyr Project documentation: Vulnerabilities
- Zephyr Project documentation: Zephyr Security Overview
- CISA ICS advisory ICSA-20-168-01: Treck TCP/IP (CSAF)
- CISA ICS advisory ICSA-20-343-01: Multiple Embedded TCP/IP Stacks (CSAF)
- CISA ICS advisory ICSA-21-217-01: HCC Embedded InterNiche TCP/IP stack, NicheLite (CSAF)
- Siemens SSA-705111: NAME:WRECK vulnerabilities in the DNS module of Nucleus RTOS
- Forescout project-memoria-detector (GitHub)
- lwIP release downloads (Savannah)
- FreeRTOS-Plus-TCP V4.4.2 release
- GHSA-h4fw-pv82-p7h5: FreeRTOS-Plus-TCP DNS reply source validation (CVE-2026-102552)
About this guide
SoftWSP Firmware Security Desk
Covers the Firmware vulnerabilities & fixes cluster: 135 guides.

In this cluster
Questions about this page?
