CVE-2021-3839

Source
https://cve.org/CVERecord?id=CVE-2021-3839
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3839.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-3839
Downstream
Related
Published
2022-08-23T16:15:10.087Z
Modified
2026-07-09T01:31:43.189518Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A flaw was found in the vhost library in DPDK. Function vhostusersetinflightfd() 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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "35"
                },
                {
                    "last_affected": "35"
                }
            ],
            "vendor_product": "fedoraproject:fedora",
            "source": "CPE_STRING",
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                },
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                },
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                }
            ],
            "vendor_product": "redhat:enterprise_linux",
            "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:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                },
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                }
            ],
            "vendor_product": "redhat:enterprise_linux_fast_datapath",
            "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:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/dpdk/dpdk

Affected ranges

Type
GIT
Repo
https://github.com/dpdk/dpdk
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Last affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "22.03"
        },
        {
            "introduced": "22.03-rc1"
        },
        {
            "last_affected": "22.03-rc1"
        },
        {
            "introduced": "22.03-rc2"
        },
        {
            "last_affected": "22.03-rc2"
        },
        {
            "introduced": "22.03-rc3"
        },
        {
            "last_affected": "22.03-rc3"
        }
    ],
    "cpe": [
        "cpe:2.3:a:dpdk:data_plane_development_kit:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:dpdk:data_plane_development_kit:22.03:rc1:*:*:*:*:*:*",
        "cpe:2.3:a:dpdk:data_plane_development_kit:22.03:rc2:*:*:*:*:*:*",
        "cpe:2.3:a:dpdk:data_plane_development_kit:22.03:rc3:*:*:*:*:*:*"
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

22.*
22.03-rc1
22.03-rc2
22.03-rc3
v22.*
v22.03-rc1
v22.03-rc2
v22.03-rc3
v22.03-rc4

Database specific

vanir_signatures
[
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "218964855366889817698744017324434491215",
                "153393868971813765081598737286992637585",
                "215130104168108337750727703366659950908",
                "135045007302257789395044528308605937321"
            ]
        },
        "id": "CVE-2021-3839-07035299",
        "signature_type": "Line",
        "source": "https://github.com/dpdk/dpdk/commit/6442c329b9d2ded0f44b27d2016aaba8ba5844c5",
        "target": {
            "file": "lib/vhost/vhost_user.c"
        }
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "digest": {
            "length": 789.0,
            "function_hash": "340127545324019451371334732147163230990"
        },
        "id": "CVE-2021-3839-60bcf5ef",
        "signature_type": "Function",
        "source": "https://github.com/dpdk/dpdk/commit/6442c329b9d2ded0f44b27d2016aaba8ba5844c5",
        "target": {
            "function": "vhost_user_check_and_alloc_queue_pair",
            "file": "lib/vhost/vhost_user.c"
        }
    }
]
vanir_signatures_modified
"2026-07-09T01:31:43Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3839.json"