CVE-2024-5171: heap buffer overflow in libaom

Published Jun 4, 2024
·
Updated

heap buffer overflow in libaom

Other sources

Integer overflow in libaom internal function imgallochelper can lead to heap buffer overflow. This function can be reached via 3 callers:

Calling aomimgalloc() with a large value of the dw, dh, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aomimaget struct may be invalid. Calling aomimgwrap() with a large value of the dw, dh, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aomimaget struct may be invalid. Calling aomimgallocwithborder() with a large value of the dw, dh, align, sizealign, or border parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aomimaget struct may be invalid.

— MITRE

Affected Software

14 affected componentsFixes available
AOMedia Libaom>=1.0.0<=3.9.0
debian/aom<3.6.0-1+deb12u1
3.6.0-1+deb12u1
debian/aom<3.8.2-3
3.8.2-3
debian/aom<3.8.2-3
3.8.2-3
debian/aom
1.0.0.errata1-3+deb11u23.6.0-1+deb12u13.8.2-3
ubuntu/aom<1.0.0.errata1-3+deb11u1ubuntu0.1
1.0.0.errata1-3+deb11u1ubuntu0.1
ubuntu/aom<3.3.0-1ubuntu0.1
3.3.0-1ubuntu0.1
ubuntu/aom<3.8.2-2ubuntu0.1
3.8.2-2ubuntu0.1
alpine/aom<3.9.1-r0
3.9.1-r0
alpine/aom<3.9.1-r0
3.9.1-r0
alpine/aom<3.9.1-r0
3.9.1-r0
alpine/aom<3.9.1-r0
3.9.1-r0
alpine/aom<3.9.1-r0
3.9.1-r0
alpine/aom<3.9.1-r0
3.9.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 3.9.1-r0
  2. Upgrade

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

    Fixed in 3.6.0-1+deb12u1
  3. Upgrade

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

    Fixed in 3.8.2-3
  4. Upgrade

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

    Fixed in 1.0.0.errata1-3+deb11u2Fixed in 3.6.0-1+deb12u1Fixed in 3.8.2-3
  5. Upgrade

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

    Fixed in 1.0.0.errata1-3+deb11u1ubuntu0.1
  6. Upgrade

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

    Fixed in 3.3.0-1ubuntu0.1
  7. Upgrade

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

    Fixed in 3.8.2-2ubuntu0.1

Event History

Jun 4, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Jun 5, 2024
CVE Published
via MITRE·07:11 PM
Data Sourced
via MITRE·07:11 PM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionWeakness
Jun 21, 2024
Data Sourced
via NVD·01:15 PM
Severity
Jun 22, 2024
Event
via FIRST·12:00 AM
Jul 23, 2024
Data Sourced
via NVD·06:09 PM
Affected Software
Updated
via NVD·06:09 PM
SeverityWeakness
Nov 21, 2024
Updated
via NVD·09:47 AM
Affected Software
Sep 4, 2025
Data Sourced
via Microsoft·03:57 AM
DescriptionSeverityWeakness
Jun 17, 2026
Updated
via NVD·08:15 AM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-5171?

CVE-2024-5171 is classified as a high severity vulnerability due to its potential for a heap buffer overflow.

2

How do I fix CVE-2024-5171?

To fix CVE-2024-5171, update the aom package to version 3.8.2-2ubuntu0.1 or 3.9.0 depending on your distribution.

3

What products are affected by CVE-2024-5171?

CVE-2024-5171 affects aom package versions prior to 3.8.2-2ubuntu0.1 and any versions before 3.9.0 in the libaom library.

4

What is the nature of the vulnerability in CVE-2024-5171?

CVE-2024-5171 involves an integer overflow in the libaom internal function img_alloc_helper, which can lead to heap buffer overflow.

5

How can I determine if my software is vulnerable to CVE-2024-5171?

Check if your installed version of the aom package is lower than 3.8.2-2ubuntu0.1 for Ubuntu or lower than 3.9.0 for other distributions.

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