CVE-2021-4158: Null Pointer Dereference

Published Dec 12, 2021
·
Updated

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.

Other sources

A NULL pointer dereference was found in the ACPI code of QEMU. The flaw lies in hw/acpi/pcihp.c in pciwrite() where the bus pointer is used without checking if it's NULL, probably because an invalid selector was supplied. 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.

Upstream issue: https://gitlab.com/qemu-project/qemu/-/issues/770

Upstream patch: https://lists.nongnu.org/archive/html/qemu-devel/2021-12/msg01491.html

— Red Hat

Affected Software

12 affected componentsFixes available
redhat/qemu-kvm<17:7.0.0-13.el9
17:7.0.0-13.el9
Qemu Qemu>=6.0.0<7.0.0
redhat Enterprise Linux=9.0
debian/qemu
1:5.2+dfsg-11+deb11u31:5.2+dfsg-11+deb11u21:7.2+dfsg-7+deb12u121:10.0.0~rc3+ds-2
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0
alpine/qemu>=6.0.0<7.0.0-r0
7.0.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/qemu-kvm to a version that resolves this vulnerability.

    Fixed in 17:7.0.0-13.el9
  2. Upgrade

    Upgrade debian/qemu to a version that resolves this vulnerability.

    Fixed in 1:5.2+dfsg-11+deb11u3Fixed in 1:5.2+dfsg-11+deb11u2Fixed in 1:7.2+dfsg-7+deb12u12Fixed in 1:10.0.0~rc3+ds-2
  3. Upgrade

    Upgrade alpine/qemu to a version that resolves this vulnerability.

    Fixed in 7.0.0-r0

Event History

Dec 12, 2021
CVE Published
12:00 AM
Dec 22, 2021
Data Sourced
via Red Hat·05:07 PM
DescriptionSeverityAffected Software
Aug 24, 2022
CVE Published
via MITRE·03:10 PM
Data Sourced
via MITRE·03:10 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2021-4158.

2

What is the severity of CVE-2021-4158?

The severity of CVE-2021-4158 is medium.

3

What is the affected software for CVE-2021-4158?

The affected software for CVE-2021-4158 includes Red Hat Enterprise Linux 9.0, qemu-kvm 17:7.0.0-13.el9, Ubuntu qemu 1:6.2+dfsg-2ubuntu5, and Ubuntu qemu 1:6.0+dfsg-2.

4

How can a malicious user exploit CVE-2021-4158?

A malicious, privileged user within the guest can exploit CVE-2021-4158 to crash the QEMU process on the host, resulting in a denial of service condition.

5

Is there a remedy available for CVE-2021-4158?

Yes, there are remedies available for CVE-2021-4158. Please refer to the official documentation and updates provided by your software vendor for the specific package versions mentioned.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203