Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3839

A flaw was found in the vhost library in DPDK. Function vhost_user_set_inflight_fd() does not validate `msg->payload.inflight.num_queues`, possibly causing out-of-bounds memory read/write. Any software using DPDK vhost library may crash as a result of this vulnerability.

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

Source evidence

CVE-2021-3839

core-osv · Original source

Published 23 Aug 2022, 16:15 UTC

A flaw was found in the vhost library in DPDK. Function vhost_user_set_inflight_fd() does not validate `msg->payload.inflight.num_queues`, possibly causing out-of-bounds memory read/write. Any software using DPDK vhost library may crash as a result of this vulnerability.

osv:CVE-2021-3839
Complete source record
{
  "id": "9b735e69ee06e6583c537f20bdf623be7d3d88af496dc4ffb54bdf0cd35ea77c",
  "url": "https://osv.dev/vulnerability/CVE-2021-3839",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3839",
    "summary": "A flaw was found in the vhost library in DPDK. Function vhost_user_set_inflight_fd() does not validate `msg->payload.inflight.num_queues`, possibly causing out-of-bounds memory read/write. Any software using DPDK vhost library may crash as a result of this vulnerability.",
    "evidence": "osv:CVE-2021-3839",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-3839",
      "aliases": [
        "CVE-2021-3839"
      ],
      "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/dpdk/dpdk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "80c5b4d6355d1dbece8dd1f812d374f3e24086bc"
                },
                {
                  "introduced": "2e07139b66a810883871ff20a5f31e4c222e5b40"
                },
                {
                  "last_affected": "312b94ef884f0cf4ee42dde36acf23a41172794d"
                },
                {
                  "fixed": "6442c329b9d2ded0f44b27d2016aaba8ba5844c5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:dpdk:data_plane_development_kit:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "22.03"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:dpdk:data_plane_development_kit:22.03:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "22.03-rc1"
                      },
                      {
                        "last_affected": "22.03-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:dpdk:data_plane_development_kit:22.03:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "22.03-rc2"
                      },
                      {
                        "last_affected": "22.03-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:dpdk:data_plane_development_kit:22.03:rc3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "22.03-rc3"
                      },
                      {
                        "last_affected": "22.03-rc3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6442c329b9d2ded0f44b27d2016aaba8ba5844c5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "22.03-rc1",
            "22.03-rc2",
            "22.03-rc3",
            "v22.03-rc3",
            "v22.03-rc2",
            "v22.03-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3839.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-3839-07035299",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "218964855366889817698744017324434491215",
                    "153393868971813765081598737286992637585",
                    "215130104168108337750727703366659950908",
                    "135045007302257789395044528308605937321"
                  ]
                },
                "source": "https://github.com/dpdk/dpdk/commit/6442c329b9d2ded0f44b27d2016aaba8ba5844c5",
                "target": {
                  "file": "lib/vhost/vhost_user.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-3839-60bcf5ef",
                "digest": {
                  "length": 789,
                  "function_hash": "340127545324019451371334732147163230990"
                },
                "source": "https://github.com/dpdk/dpdk/commit/6442c329b9d2ded0f44b27d2016aaba8ba5844c5",
                "target": {
                  "file": "lib/vhost/vhost_user.c",
                  "function": "vhost_user_check_and_alloc_queue_pair"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:12:43Z"
          }
        }
      ],
      "modified": "2026-10-20T14:12:43.687202296Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/security/cve/CVE-2021-3839",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2025882",
        "https://github.com/DPDK/dpdk/commit/6442c329b9d2ded0f44b27d2016aaba8ba5844c5"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "35"
                  },
                  {
                    "last_affected": "35"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:enterprise_linux_fast_datapath:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:redhat:enterprise_linux_fast_datapath:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_fast_datapath",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-3839",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388717,
  "published_at": "2022-08-23T16:15:10.087+00:00"
}