CVE-2024-5171: heap buffer overflow in libaom

Published Jun 4, 2024
·
Updated

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.

Affected Software

10 affected componentsFixes available
AOMedia Libaom>=1.0.0<=3.9.0
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
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
3.6.0-1+deb12u23.6.0-1+deb12u33.12.1-1+deb13u13.14.1-1

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 3.6.0-1+deb12u2Fixed in 3.6.0-1+deb12u3Fixed in 3.12.1-1+deb13u1Fixed in 3.14.1-1

Event History

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
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected 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