{"schema_version":"1.7.5","id":"CVE-2021-4158","published":"2022-08-24T16:15:09.660Z","modified":"2026-07-09T06:01:55.073390Z","related":["ALSA-2022:1759","ALSA-2022:7967","openSUSE-SU-2024:11862-1"],"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/qemu/qemu","events":[{"introduced":"609d7596524ab204ccd71ef42c9eee4c7c338ea4"},{"fixed":"823a3f11fb8f04c3c3cc0f95f968fef1bfc6534f"}],"database_specific":{"cpe":"cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"6.0.0"},{"fixed":"7.0.0"}],"source":"CPE_RANGE"}}],"versions":["v7.0.0-rc4","v7.0.0-rc3","v7.0.0-rc2","v7.0.0-rc1","v7.0.0-rc0","v6.2.0","v6.2.0-rc4","v6.1.0","v6.2.0-rc3","v6.2.0-rc1","v6.2.0-rc0","v6.0.0","v6.1.0-rc4","v6.1.0-rc3","v6.1.0-rc2","v6.1.0-rc1","v6.1.0-rc0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4158.json"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.com/qemu-project/qemu","events":[{"introduced":"609d7596524ab204ccd71ef42c9eee4c7c338ea4"},{"fixed":"823a3f11fb8f04c3c3cc0f95f968fef1bfc6534f"},{"fixed":"9bd6565ccee68f72d5012e24646e12a1c662827e"}],"database_specific":{"cpe":"cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"6.0.0"},{"fixed":"7.0.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v7.0.0-rc4","v7.0.0-rc3","v7.0.0-rc2","v7.0.0-rc1","v7.0.0-rc0","v6.2.0","v6.2.0-rc4","v6.1.0","v6.2.0-rc3","v6.2.0-rc1","v6.2.0-rc0","v6.0.0","v6.1.0-rc4","v6.1.0-rc3","v6.1.0-rc2","v6.1.0-rc1","v6.1.0-rc0"],"database_specific":{"source":"https://storage.googleapis.com/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-07-09T06:01:55Z"}}],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2021-4158"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2035002"},{"type":"FIX","url":"https://gitlab.com/qemu-project/qemu/-/commit/9bd6565ccee68f72d5012e24646e12a1c662827e"},{"type":"FIX","url":"https://www.mail-archive.com/qemu-devel%40nongnu.org/msg857944.html"},{"type":"EVIDENCE","url":"https://gitlab.com/qemu-project/qemu/-/issues/770"}],"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"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H"}]}