CVE-2021-4158

Source
https://cve.org/CVERecord?id=CVE-2021-4158
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-4158.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-4158
Downstream
AZL (2)
BELL (1)
DEBIAN (1)
OESA (1)
openSUSE (1)
RHSA (2)
RLSA (2)
UBUNTU (1)
Related
Published
2022-08-24T16:15:09Z
Modified
2026-10-06T07:36:43Z
Severity
  • 6.0 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A NULL pointer dereference issue was found in the ACPI code of QEMU. A malicious, privileged user within the guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service condition.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "9.0"
                },
                {
                    "last_affected":  "9.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:enterprise_linux"
        }
    ]
}
References

Affected packages

Git / github.com/qemu/qemu

Affected ranges

Type
GIT
Repo
https://github.com/qemu/qemu
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "6.0.0"
        },
        {
            "fixed":  "7.0.0"
        }
    ],
    "source":  "CPE_RANGE"
}

Affected versions

v6.*
v6.0.0
v6.1.0
v6.1.0-rc0
v6.1.0-rc1
v6.1.0-rc2
v6.1.0-rc3
v6.1.0-rc4
v6.2.0
v6.2.0-rc0
v6.2.0-rc1
v6.2.0-rc3
v6.2.0-rc4
v7.*
v7.0.0-rc0
v7.0.0-rc1
v7.0.0-rc2
v7.0.0-rc3
v7.0.0-rc4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-4158.json"

Git / gitlab.com/qemu-project/qemu

Affected ranges

Type
GIT
Repo
https://gitlab.com/qemu-project/qemu
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "6.0.0"
        },
        {
            "fixed":  "7.0.0"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v6.*
v6.0.0
v6.1.0
v6.1.0-rc0
v6.1.0-rc1
v6.1.0-rc2
v6.1.0-rc3
v6.1.0-rc4
v6.2.0
v6.2.0-rc0
v6.2.0-rc1
v6.2.0-rc3
v6.2.0-rc4
v7.*
v7.0.0-rc0
v7.0.0-rc1
v7.0.0-rc2
v7.0.0-rc3
v7.0.0-rc4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-4158.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "29241769371726105858997322140807546074",
                "204869718129668260300591851454772074210",
                "104609843986139743672680069331723361112",
                "16931581179525205007109690658504937315"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-4158-18b1015f",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/qemu-project/qemu@9bd6565ccee68f72d5012e24646e12a1c662827e",
        "target":  {
            "file":  "hw/acpi/pcihp.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "151015625364822090940316435929247005440",
            "length":  1035
        },
        "id":  "CVE-2021-4158-5541ba0b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/qemu-project/qemu@9bd6565ccee68f72d5012e24646e12a1c662827e",
        "target":  {
            "file":  "hw/acpi/pcihp.c",
            "function":  "pci_write"
        }
    }
]
vanir_signatures_modified
"2026-10-06T07:36:43Z"