OpenwrtOperating system

CVE-2021-22161

MEDIUM · 6.5 CVSS v3.1 Published 2021-02-07
Fix available
A fix is available. Upgrade to after 19.07.6 or later.
See remediation →
70/100
Remediation priority · Elevated
No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
In OpenWrt 19.07.x before 19.07.7, when IPv6 is used, a routing loop can occur that generates excessive network traffic between an affected device and its upstream ISP's router. This occurs when a link prefix route points to a point-to-point link, a destination IPv6 address belongs to the prefix and is not a local IPv6 address, and a router advertisement is received with at least one global unique IPv6 prefix for which the on-link flag is set. This affects the netifd and odhcp6c packages.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

OpenWrt versions 19.07.x before 19.07.7 contain a routing loop vulnerability in the netifd and odhcp6c packages. When IPv6 is enabled and a router advertisement is received with a global unique IPv6 prefix that has the on-link flag set, a routing loop can form between the affected device and upstream ISP router when certain prefix conditions are met, generating excessive network traffic.

MitigationUpgrade OpenWrt to version 19.07.7 or later which contains the fix for this routing loop vulnerability in the netifd and odhcp6c packages.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
OpenwrtOperating system
Affected:>= 19.07.0, <= 19.07.6

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Adjacent
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify OpenWrt version
    Run 'cat /etc/openwrt_version' or check via LuCI under System > Software, or use 'opkg list-installed' to find the base version
    Affected if Version is 19.07.0, 19.07.1, 19.07.2, 19.07.3, 19.07.4, 19.07.5, or 19.07.6 (versions before 19.07.7)
  2. Confirm IPv6 is enabled
    Inspect /etc/config/network for IPv6 settings on WAN interface, or run 'ip -6 addr show' to see if IPv6 addresses are assigned to WAN
    Affected if IPv6 is enabled and the router is receiving router advertisements on the WAN interface
  3. Check netifd and odhcp6c packages
    Run 'opkg list-installed | grep -E "^netifd |^odhcp6c "' to verify these packages are installed
    Affected if These packages are installed and handle IPv6 prefix processing for router advertisements
  4. Verify on-link IPv6 prefix handling
    Monitor network traffic on WAN interface for incoming Router Advertisement messages using 'tcpdump -i eth0 -vv ip6' or check logs for prefix-related messages
    Affected if Router is processing router advertisements that contain global unique IPv6 prefixes with the on-link flag set

The router is affected if it runs OpenWrt 19.07.0 through 19.07.6 with IPv6 enabled and is receiving router advertisements containing global unique IPv6 prefixes with the on-link flag set from the upstream ISP.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 19.07.6
Interim mitigation

Upgrade OpenWrt to version 19.07.7 or later which contains the fix for this routing loop vulnerability in the netifd and odhcp6c packages.

Fix this in Openwrt Scoped from the published advisory
  • Consultation3.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA2.0 h
11.0 hours of engineering $1,920
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,072.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-22161 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2021-22161 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data