Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-43612

In lldpd before 1.0.13, when decoding SONMP packets in the sonmp_decode function, it's possible to trigger an out-of-bounds heap read via short SONMP packets.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-43612
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:03 UTC · Revision 1

Source evidence

CVE-2021-43612

core-osv · Original source

Published 15 Apr 2023, 22:15 UTC

In lldpd before 1.0.13, when decoding SONMP packets in the sonmp_decode function, it's possible to trigger an out-of-bounds heap read via short SONMP packets.

osv:CVE-2021-43612
Complete source record
{
  "id": "17d1bbdb966caa18393429d3417786d2074d02023ef7f9c849c97f0447fb6e7c",
  "url": "https://osv.dev/vulnerability/CVE-2021-43612",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-43612",
    "summary": "In lldpd before 1.0.13, when decoding SONMP packets in the sonmp_decode function, it's possible to trigger an out-of-bounds heap read via short SONMP packets.",
    "evidence": "osv:CVE-2021-43612",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-43612",
      "aliases": [
        "CVE-2021-43612"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lldpd/lldpd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9576b78ec445b6570763deb93f0de8e68ba77f7e"
                },
                {
                  "fixed": "73d42680fce8598324364dbb31b9bc3b8320adf7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:lldpd_project:lldpd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.0.13"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "73d42680fce8598324364dbb31b9bc3b8320adf7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.12",
            "1.0.11",
            "1.0.10",
            "1.0.9",
            "1.0.8",
            "1.0.7",
            "1.0.6",
            "1.0.5",
            "1.0.4",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "0.9.9",
            "0.9.8",
            "0.9.7",
            "0.9.6",
            "0.9.5",
            "0.9.4",
            "0.9.3",
            "0.9.2",
            "0.9.1",
            "0.9.0",
            "0.8.0",
            "0.7.16",
            "0.7.15",
            "0.7.14",
            "0.7.13",
            "0.7.12",
            "0.7.11",
            "0.7.10",
            "0.7.9",
            "0.7.8",
            "0.7.7",
            "0.7.6",
            "0.7.5",
            "0.7.4",
            "0.7.3",
            "0.7.2",
            "0.7.1",
            "0.7.0",
            "0.6.1",
            "0.6.0",
            "0.5.5",
            "0.5.4",
            "0.5.2",
            "0.5.1",
            "0.5.0",
            "0.4.0",
            "0.3.2",
            "0.3.1",
            "0.3",
            "0.2.1",
            "0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43612.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-43612-3f142231",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "174270931191069446119922332806983027230",
                    "328953425429319740967359908202123365019",
                    "148474301713841057780854757599060454972",
                    "303472043700785910045862048403819654472"
                  ]
                },
                "source": "https://github.com/lldpd/lldpd/commit/73d42680fce8598324364dbb31b9bc3b8320adf7",
                "target": {
                  "file": "src/daemon/protocols/sonmp.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43612-be4181ed",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "123919934963719850177372057111646982388",
                    "85242646061938928223557171248857657613",
                    "290398165181504468760796425243008171327",
                    "73400390999848461393684333828551772347",
                    "66224003795423317515501178359389502228",
                    "263998930456032330990528442924748879102",
                    "134033607636796134223854940512835876482",
                    "150652448467631310759880651304122297814",
                    "75008514573464950100949670934350687236",
                    "121758378453464247567102532326677508342",
                    "99856463810497114028292624778359719239",
                    "91295583977985738032834828095236946141",
                    "121648892500187250039971799308710356741",
                    "284151098791119388058347318805540286132",
                    "42095772248954819309628834884020855252",
                    "182881045688165871448594777995178323541"
                  ]
                },
                "source": "https://github.com/lldpd/lldpd/commit/73d42680fce8598324364dbb31b9bc3b8320adf7",
                "target": {
                  "file": "tests/check_sonmp.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43612-ce80cd72",
                "digest": {
                  "length": 1710,
                  "function_hash": "8385375709133268312520587891129635825"
                },
                "source": "https://github.com/lldpd/lldpd/commit/73d42680fce8598324364dbb31b9bc3b8320adf7",
                "target": {
                  "file": "tests/check_sonmp.c",
                  "function": "START_TEST"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-43612-f8222931",
                "digest": {
                  "length": 3756,
                  "function_hash": "31357405704987458856179538394491194529"
                },
                "source": "https://github.com/lldpd/lldpd/commit/73d42680fce8598324364dbb31b9bc3b8320adf7",
                "target": {
                  "file": "src/daemon/protocols/sonmp.c",
                  "function": "sonmp_decode"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:34:28Z"
          }
        }
      ],
      "modified": "2026-10-20T14:34:28.184880311Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3T5XHPOGIPWCRRPJUE6P3HVC5PTSD5JS/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYA4AMJXCNF6UPFG36L2TPPT32C242SP/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SKQWHG2SZJZSGC7PXVDAEJYBN7ESDR7D/",
        "https://github.com/lldpd/lldpd/commit/73d42680fce8598324364dbb31b9bc3b8320adf7",
        "https://github.com/lldpd/lldpd/compare/1.0.12...1.0.13",
        "https://lldpd.github.io/security.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "36"
                  },
                  {
                    "last_affected": "36"
                  },
                  {
                    "introduced": "37"
                  },
                  {
                    "last_affected": "37"
                  },
                  {
                    "introduced": "38"
                  },
                  {
                    "last_affected": "38"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-43612",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389722,
  "published_at": "2023-04-15T22:15:07.033+00:00"
}