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
Related
Published
2022-08-24T16:15:09.660Z
Modified
2026-05-30T22:01:12.260379Z
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": [
        {
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
                {
                    "last_affected": "9.0"
                }
            ],
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
            ],
            "source": "CPE_STRING"
        }
    ]
}
References

Affected packages

Git / github.com/qemu/qemu

Affected ranges

Type
GIT
Repo
https://github.com/qemu/qemu
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "6.0.0"
        },
        {
            "fixed": "7.0.0"
        }
    ],
    "cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
    "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
{
    "extracted_events": [
        {
            "introduced": "6.0.0"
        },
        {
            "fixed": "7.0.0"
        }
    ],
    "cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
    "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

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