Back to Labs
Security Advisory

CVE-2021-3330

About

RCE/DOS: Linked-list corruption leading to large out-of-bounds write while sorting for forged fragment list in Zephyr. Zephyr versions >= >=2.4.0 contain Out-of-bounds Write (CWE-787). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fj4r-373f-9456

Weakness (CWE):CWE-787

Rainforest analyst review

This is a memory-corruption bug deep in the Zephyr RTOS network stack: a forged fragment list corrupts a linked list during sorting, producing a large out-of-bounds write. The advisory frames it as RCE/DOS, meaning a crafted set of fragments sent to the device can at minimum crash it and potentially be steered into code execution. The vector points to an adjacent-network attacker — this comes from something on the same link, not the open internet.

Zephyr runs on embedded and IoT devices, which shapes the threat: these are constrained targets, often deployed in fleets, frequently without exploit mitigations that a general-purpose OS would have, and notoriously slow to receive firmware updates. An out-of-bounds write in fragment handling is reachable by anyone who can put crafted packets on the local segment, so in environments where such devices share a network with less-trusted hosts, the DoS is very plausible and the code-execution ceiling is a genuine concern. It's not mass-internet-scanned, but it's dangerous where an attacker already has adjacency.

Our challenge with this class is that embedded firmware is the hardest thing to inventory and patch, so we lean on segmentation. The realistic mitigation is isolating Zephyr-based devices onto trusted network segments where an attacker can't reach them with forged fragments, while tracking which products build on the affected 2.4.0-and-later versions for firmware updates as vendors ship them. We rank it by network adjacency: reachable-from-untrusted is urgent, air-gapped or tightly segmented is far less so.

References

Related CVEs

Frequently asked questions

What is CVE-2021-3330?

RCE/DOS: Linked-list corruption leading to large out-of-bounds write while sorting for forged fragment list in Zephyr. Zephyr versions >= >=2.4.0 contain Out-of-bounds Write (CWE-787). For more information, see https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fj4r-373f-9456

How severe is CVE-2021-3330?

CVE-2021-3330 carries a CVSS 3.1 base score of 7.1, rated high. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 75 out of 100, in the high band.

How is CVE-2021-3330 exploited?

According to the CVSS vector (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L): attack vector Adjacent, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality Low, integrity Low and availability Low.

Which products are affected by CVE-2021-3330?

Public advisories list the following as affected: zephyr. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2021-3330?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email