CVE-2024-3447: Qemu: sdhci: heap buffer overflow in sdhci_write_dataport()

Published Apr 9, 2024
·
Updated

A heap based buffer overflow was found in the SDHCI device emulation of QEMU. The bug is triggered when both s->datacount and the size of s->fifobuffer are set to 0x200, leading to an out-of-bound access. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service condition.

Upstream patch: https://patchew.org/QEMU/20240404085549.16987-1-philmd@linaro.org/

oss-fuzz bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58813

Other sources

A heap-based buffer overflow was found in the SDHCI device emulation of QEMU. The bug is triggered when both s->datacount and the size of s->fifobuffer are set to 0x200, leading to an out-of-bound access. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service condition.

— MITRE

Qemu: sdhci: heap buffer overflow in sdhciwritedataport()

— Microsoft

Affected Software

21 affected componentsFixes available
Qemu Qemu
Microsoft azl3 qemu 8.2.0-16
Microsoft cbl2 qemu 6.2.0-24
Microsoft cbl2 qemu 6.2.0-24
Qemu Qemu<7.2.11
Qemu Qemu>=8.0.0<8.2.3
Qemu Qemu=9.0.0
Qemu Qemu=9.0.0-rc0
Qemu Qemu=9.0.0-rc1
Qemu Qemu=9.0.0-rc2
NetApp Hci Compute Node
debian/qemu<1:7.2+dfsg-7+deb12u6
1:7.2+dfsg-7+deb12u6
debian/qemu<1:8.2.3+ds-1
1:8.2.3+ds-1
debian/qemu<1:8.2.3+ds-1
1:8.2.3+ds-1
debian/qemu
1:7.2+dfsg-7+deb12u181:7.2+dfsg-7+deb12u151:10.0.13+ds-0+deb13u11:10.0.2+ds-2+deb13u11:11.1.2+ds-31:11.1.3+ds-1
ubuntu/qemu<2.0.0+dfsg-2ubuntu1.47+esm6
2.0.0+dfsg-2ubuntu1.47+esm6
ubuntu/qemu<1:2.5+dfsg-5ubuntu10.51+esm4
1:2.5+dfsg-5ubuntu10.51+esm4
ubuntu/qemu<1:2.11+dfsg-1ubuntu7.42+esm5
1:2.11+dfsg-1ubuntu7.42+esm5
ubuntu/qemu<1:4.2-3ubuntu6.30+esm1
1:4.2-3ubuntu6.30+esm1
ubuntu/qemu<1:6.2+dfsg-2ubuntu6.27
1:6.2+dfsg-2ubuntu6.27
ubuntu/qemu<1:8.2.2+ds-0ubuntu1.10
1:8.2.2+ds-0ubuntu1.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1:7.2+dfsg-7+deb12u6
  2. Upgrade

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

    Fixed in 1:8.2.3+ds-1
  3. Upgrade

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

    Fixed in 1:7.2+dfsg-7+deb12u18Fixed in 1:7.2+dfsg-7+deb12u15Fixed in 1:10.0.13+ds-0+deb13u1Fixed in 1:10.0.2+ds-2+deb13u1Fixed in 1:11.1.2+ds-3Fixed in 1:11.1.3+ds-1
  4. Upgrade

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

    Fixed in 2.0.0+dfsg-2ubuntu1.47+esm6
  5. Upgrade

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

    Fixed in 1:2.5+dfsg-5ubuntu10.51+esm4
  6. Upgrade

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

    Fixed in 1:2.11+dfsg-1ubuntu7.42+esm5
  7. Upgrade

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

    Fixed in 1:4.2-3ubuntu6.30+esm1
  8. Upgrade

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

    Fixed in 1:6.2+dfsg-2ubuntu6.27
  9. Upgrade

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

    Fixed in 1:8.2.2+ds-0ubuntu1.10

Event History

Apr 9, 2024
Data Sourced
via Red Hat·09:04 AM
DescriptionSeverityAffected Software
Nov 14, 2024
CVE Published
via MITRE·12:10 PM
Data Sourced
via MITRE·12:10 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:15 PM
DescriptionSeverityWeakness
May 5, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Aug 5, 2025
Data Sourced
via NVD·06:33 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-3447?

CVE-2024-3447 is classified as a critical vulnerability due to the potential for a heap-based buffer overflow leading to crashes.

2

How do I fix CVE-2024-3447?

To mitigate CVE-2024-3447, update to the latest version of QEMU that addresses this vulnerability.

3

What causes CVE-2024-3447?

CVE-2024-3447 is triggered when both 's->data_count' and the size of 's->fifo_buffer' are incorrectly set, leading to out-of-bounds access.

4

Who is impacted by CVE-2024-3447?

Any system using vulnerable versions of QEMU may be impacted by CVE-2024-3447, especially if it processes untrusted guest data.

5

What are the consequences of exploiting CVE-2024-3447?

Exploitation of CVE-2024-3447 can lead to a crash of the QEMU process, resulting in denial of service.

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