Skip to content
Heist/ feed
Back to feed
High

Uncontrolled recursion due to insufficient validation of the IPv6 source routing header in Contiki-NG

Type: advisorySources: OSV

Contiki-NG is an open-source, cross-platform operating system for IoT devices. The Contiki-NG operating system processes source routing headers (SRH) in its two alternative RPL protocol implementations. The IPv6 implementation uses the results of this processing to determine whether an incoming packet should be forwarded to another host. Because of missing validation of the resulting next-hop address, an uncontrolled recursion may occur in the tcpip_ipv6_output function in the os/net/ipv6/tcpip.c module when receiving a packet with a next-hop address that is a local address. Attackers that have the possibility to send IPv6 packets to the Contiki-NG host can therefore trigger deeply nested recursive calls, which can cause a stack overflow. The vulnerability has not been patched in the current release of Contiki-NG, but is expected to be patched in the next release. The problem can be fixed by applying the patch in Contiki-NG pull request #2264. Users are advised to either apply the patch manually or to wait for the next release. There are no known workarounds for this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-29001
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:00 UTC · Revision 1

Source evidence

Uncontrolled recursion due to insufficient validation of the IPv6 source routing header in Contiki-NG

core-osv · Original source

Published 27 Nov 2024, 18:20 UTC

Contiki-NG is an open-source, cross-platform operating system for IoT devices. The Contiki-NG operating system processes source routing headers (SRH) in its two alternative RPL protocol implementations. The IPv6 implementation uses the results of this processing to determine whether an incoming packet should be forwarded to another host. Because of missing validation of the resulting next-hop address, an uncontrolled recursion may occur in the tcpip_ipv6_output function in the os/net/ipv6/tcpip.c module when receiving a packet with a next-hop address that is a local address. Attackers that have the possibility to send IPv6 packets to the Contiki-NG host can therefore trigger deeply nested recursive calls, which can cause a stack overflow. The vulnerability has not been patched in the current release of Contiki-NG, but is expected to be patched in the next release. The problem can be fixed by applying the patch in Contiki-NG pull request #2264. Users are advised to either apply the patch manually or to wait for the next release. There are no known workarounds for this vulnerability.

osv:CVE-2023-29001
Complete source record
{
  "id": "70ec127f4894d7df66818df3348fa1ba599c86726c4b2b687b1fde37fec8ccc4",
  "url": "https://osv.dev/vulnerability/CVE-2023-29001",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Uncontrolled recursion due to insufficient validation of the IPv6 source routing header in Contiki-NG",
    "summary": "Contiki-NG is an open-source, cross-platform operating system for IoT devices. The Contiki-NG operating system processes source routing headers (SRH) in its two alternative RPL protocol implementations. The IPv6 implementation uses the results of this processing to determine whether an incoming packet should be forwarded to another host. Because of missing validation of the resulting next-hop address, an uncontrolled recursion may occur in the tcpip_ipv6_output function in the os/net/ipv6/tcpip.c module when receiving a packet with a next-hop address that is a local address. Attackers that have the possibility to send IPv6 packets to the Contiki-NG host can therefore trigger deeply nested recursive calls, which can cause a stack overflow. The vulnerability has not been patched in the current release of Contiki-NG, but is expected to be patched in the next release. The problem can be fixed by applying the patch in Contiki-NG pull request #2264. Users are advised to either apply the patch manually or to wait for the next release. There are no known workarounds for this vulnerability.",
    "evidence": "osv:CVE-2023-29001",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-29001",
      "aliases": [
        "CVE-2023-29001",
        "GHSA-7p75-mf53-ffwm"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/contiki-ng/contiki-ng",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "c20b12cd2db707d6c07918f8b26cfeb52cf298ca"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "4.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            }
          ],
          "versions": [
            "release/v4.9",
            "release/v4.8",
            "release/v4.7",
            "release/v4.6",
            "release/v4.5",
            "release/v4.4",
            "release/v4.3",
            "release/v4.2",
            "release/v4.1",
            "release/v4.0",
            "develop/v4.0",
            "fork",
            "develop/v3.x-fork",
            "old/v2.6",
            "2.6-rc0",
            "2.6",
            "2.5-release",
            "old/v2.4",
            "2.4",
            "old/v2.3",
            "2.3",
            "old/v2.2.3",
            "2.2.3",
            "old/v2.2.2",
            "2.2.2",
            "old/v2.2.1",
            "2.2.1",
            "old/v2.2",
            "2.2",
            "old/v2.1",
            "2.1",
            "old/v2.0",
            "2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-29001.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.181930265Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29001.json",
        "https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-7p75-mf53-ffwm",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-29001",
        "https://github.com/contiki-ng/contiki-ng/pull/2264"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-674"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29001.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-29001",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489524,
  "published_at": "2024-11-27T18:20:47.36+00:00"
}