Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-36980

Open vSwitch (aka openvswitch) 2.11.0 through 2.15.0 has a use-after-free in decode_NXAST_RAW_ENCAP (called from ofpact_decode and ofpacts_decode) during the decoding of a RAW_ENCAP action.

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

Source evidence

CVE-2021-36980

core-osv · Original source

Published 20 Jul 2021, 07:15 UTC

Open vSwitch (aka openvswitch) 2.11.0 through 2.15.0 has a use-after-free in decode_NXAST_RAW_ENCAP (called from ofpact_decode and ofpacts_decode) during the decoding of a RAW_ENCAP action.

osv:CVE-2021-36980
Complete source record
{
  "id": "7963e05b8797c6ee91df714b0a38d5a46c87ba13389416183f70649243eb529f",
  "url": "https://osv.dev/vulnerability/CVE-2021-36980",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-36980",
    "summary": "Open vSwitch (aka openvswitch) 2.11.0 through 2.15.0 has a use-after-free in decode_NXAST_RAW_ENCAP (called from ofpact_decode and ofpacts_decode) during the decoding of a RAW_ENCAP action.",
    "evidence": "osv:CVE-2021-36980",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-36980",
      "aliases": [
        "CVE-2021-36980"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openvswitch/ovs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "997f2b583f49d1a52b41958b88acf4f23a49eba6"
                },
                {
                  "last_affected": "8dc1733eaea866dce033b3c44853e1b09bf59fc7"
                },
                {
                  "fixed": "38744b1bcb022c611712527f039722115300f58f"
                },
                {
                  "fixed": "65c61b0c23a0d474696d7b1cea522a5016a8aeb3"
                },
                {
                  "fixed": "6d67310f4d2524b466b98f05ebccc1add1e8cf35"
                },
                {
                  "fixed": "77cccc74deede443e8b9102299efc869a52b65b2"
                },
                {
                  "fixed": "8ce8dc34b5f73b30ce0c1869af9947013c3c6575"
                },
                {
                  "fixed": "9926637a80d0d243dbf9c49761046895e9d1a8e2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openvswitch:openvswitch:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.11.0"
                      },
                      {
                        "last_affected": "2.15.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "38744b1bcb022c611712527f039722115300f58f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "65c61b0c23a0d474696d7b1cea522a5016a8aeb3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6d67310f4d2524b466b98f05ebccc1add1e8cf35"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "77cccc74deede443e8b9102299efc869a52b65b2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8ce8dc34b5f73b30ce0c1869af9947013c3c6575"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9926637a80d0d243dbf9c49761046895e9d1a8e2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.11.6",
            "v2.11.5",
            "v2.11.4",
            "v2.11.3",
            "v2.11.2",
            "v2.11.1",
            "v2.11.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-36980.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-36980-200af1b6",
                "digest": {
                  "length": 761,
                  "function_hash": "209576733534873843408785465615394916633"
                },
                "source": "https://github.com/openvswitch/ovs/commit/65c61b0c23a0d474696d7b1cea522a5016a8aeb3",
                "target": {
                  "file": "lib/ofp-actions.c",
                  "function": "decode_NXAST_RAW_ENCAP"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-275ba41f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92060819711219569976165408103874414148",
                    "230133176707265485790101955749202792602",
                    "125678146867983290637383644987280043108",
                    "160963822987075192410460993497950816861",
                    "75627123629655397597708468586468840578",
                    "203694621910049404690690516157255942209",
                    "195849225705113354180812045969896413298",
                    "208620529668483093776628092577962602440"
                  ]
                },
                "source": "https://github.com/openvswitch/ovs/commit/6d67310f4d2524b466b98f05ebccc1add1e8cf35",
                "target": {
                  "file": "lib/ofp-actions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-30cd9a35",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92060819711219569976165408103874414148",
                    "230133176707265485790101955749202792602",
                    "125678146867983290637383644987280043108",
                    "160963822987075192410460993497950816861",
                    "75627123629655397597708468586468840578",
                    "203694621910049404690690516157255942209",
                    "195849225705113354180812045969896413298",
                    "208620529668483093776628092577962602440"
                  ]
                },
                "source": "https://github.com/openvswitch/ovs/commit/9926637a80d0d243dbf9c49761046895e9d1a8e2",
                "target": {
                  "file": "lib/ofp-actions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-415b3027",
                "digest": {
                  "length": 761,
                  "function_hash": "209576733534873843408785465615394916633"
                },
                "source": "https://github.com/openvswitch/ovs/commit/6d67310f4d2524b466b98f05ebccc1add1e8cf35",
                "target": {
                  "file": "lib/ofp-actions.c",
                  "function": "decode_NXAST_RAW_ENCAP"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-4400f99d",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92060819711219569976165408103874414148",
                    "230133176707265485790101955749202792602",
                    "125678146867983290637383644987280043108",
                    "160963822987075192410460993497950816861",
                    "75627123629655397597708468586468840578",
                    "203694621910049404690690516157255942209",
                    "195849225705113354180812045969896413298",
                    "208620529668483093776628092577962602440"
                  ]
                },
                "source": "https://github.com/openvswitch/ovs/commit/8ce8dc34b5f73b30ce0c1869af9947013c3c6575",
                "target": {
                  "file": "lib/ofp-actions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-58985c2c",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92060819711219569976165408103874414148",
                    "230133176707265485790101955749202792602",
                    "125678146867983290637383644987280043108",
                    "160963822987075192410460993497950816861",
                    "75627123629655397597708468586468840578",
                    "203694621910049404690690516157255942209",
                    "195849225705113354180812045969896413298",
                    "208620529668483093776628092577962602440"
                  ]
                },
                "source": "https://github.com/openvswitch/ovs/commit/38744b1bcb022c611712527f039722115300f58f",
                "target": {
                  "file": "lib/ofp-actions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-5c589e53",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92060819711219569976165408103874414148",
                    "230133176707265485790101955749202792602",
                    "125678146867983290637383644987280043108",
                    "160963822987075192410460993497950816861",
                    "75627123629655397597708468586468840578",
                    "203694621910049404690690516157255942209",
                    "195849225705113354180812045969896413298",
                    "208620529668483093776628092577962602440"
                  ]
                },
                "source": "https://github.com/openvswitch/ovs/commit/77cccc74deede443e8b9102299efc869a52b65b2",
                "target": {
                  "file": "lib/ofp-actions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-880e5a8e",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "92060819711219569976165408103874414148",
                    "230133176707265485790101955749202792602",
                    "125678146867983290637383644987280043108",
                    "160963822987075192410460993497950816861",
                    "75627123629655397597708468586468840578",
                    "203694621910049404690690516157255942209",
                    "195849225705113354180812045969896413298",
                    "208620529668483093776628092577962602440"
                  ]
                },
                "source": "https://github.com/openvswitch/ovs/commit/65c61b0c23a0d474696d7b1cea522a5016a8aeb3",
                "target": {
                  "file": "lib/ofp-actions.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-8fa1a3c4",
                "digest": {
                  "length": 761,
                  "function_hash": "209576733534873843408785465615394916633"
                },
                "source": "https://github.com/openvswitch/ovs/commit/38744b1bcb022c611712527f039722115300f58f",
                "target": {
                  "file": "lib/ofp-actions.c",
                  "function": "decode_NXAST_RAW_ENCAP"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-9195f800",
                "digest": {
                  "length": 761,
                  "function_hash": "209576733534873843408785465615394916633"
                },
                "source": "https://github.com/openvswitch/ovs/commit/8ce8dc34b5f73b30ce0c1869af9947013c3c6575",
                "target": {
                  "file": "lib/ofp-actions.c",
                  "function": "decode_NXAST_RAW_ENCAP"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-96f56785",
                "digest": {
                  "length": 761,
                  "function_hash": "209576733534873843408785465615394916633"
                },
                "source": "https://github.com/openvswitch/ovs/commit/9926637a80d0d243dbf9c49761046895e9d1a8e2",
                "target": {
                  "file": "lib/ofp-actions.c",
                  "function": "decode_NXAST_RAW_ENCAP"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-36980-f5546977",
                "digest": {
                  "length": 761,
                  "function_hash": "209576733534873843408785465615394916633"
                },
                "source": "https://github.com/openvswitch/ovs/commit/77cccc74deede443e8b9102299efc869a52b65b2",
                "target": {
                  "file": "lib/ofp-actions.c",
                  "function": "decode_NXAST_RAW_ENCAP"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:04:50Z"
          }
        }
      ],
      "modified": "2026-10-20T14:04:50.700424440Z",
      "provider": "osv",
      "references": [
        "https://github.com/google/oss-fuzz-vulns/blob/main/vulns/openvswitch/OSV-2020-2197.yaml",
        "https://security.gentoo.org/glsa/202311-16",
        "https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27851",
        "https://github.com/openvswitch/ovs/commit/38744b1bcb022c611712527f039722115300f58f",
        "https://github.com/openvswitch/ovs/commit/65c61b0c23a0d474696d7b1cea522a5016a8aeb3",
        "https://github.com/openvswitch/ovs/commit/6d67310f4d2524b466b98f05ebccc1add1e8cf35",
        "https://github.com/openvswitch/ovs/commit/77cccc74deede443e8b9102299efc869a52b65b2",
        "https://github.com/openvswitch/ovs/commit/8ce8dc34b5f73b30ce0c1869af9947013c3c6575",
        "https://github.com/openvswitch/ovs/commit/9926637a80d0d243dbf9c49761046895e9d1a8e2"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-36980",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388538,
  "published_at": "2021-07-20T07:15:08.113+00:00"
}