Vulnerability · Published Jun 5, 2024 · Assigned by Google

CVE-2024-5171heap buffer overflow in libaom

Critical 10.0

In plain English

A critical-severity improper input validation in libaom from libaom. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)10.0Critical
Exploit odds (30 days)1.3%top 30.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Integer overflow in libaom internal function img_alloc_helper can lead to heap buffer overflow. This function can be reached via 3 callers: * Calling aom_img_alloc() with a large value of the d_w, d_h, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aom_image_t struct may be invalid. * Calling aom_img_wrap() with a large value of the d_w, d_h, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aom_image_t struct may be invalid. * Calling aom_img_alloc_with_border() with a large value of the d_w, d_h, align, size_align, or border parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aom_image_t struct may be invalid.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20aom3.9.1-r0ALPINE-CVE-2024-5171
Alpine:v3.21aom3.9.1-r0ALPINE-CVE-2024-5171
Alpine:v3.22aom3.9.1-r0ALPINE-CVE-2024-5171
Alpine:v3.23aom3.9.1-r0ALPINE-CVE-2024-5171
Alpine:v3.24aom3.9.1-r0ALPINE-CVE-2024-5171
Debian:12aom3.6.0-1+deb12u1DSA-5753-1
Debian:12aom3.6.0-1+deb12u1DEBIAN-CVE-2024-5171
Debian:13aom3.8.2-3DEBIAN-CVE-2024-5171
Debian:14aom3.8.2-3DEBIAN-CVE-2024-5171
Ubuntu:22.04:LTSaom3.3.0-1ubuntu0.1USN-7397-1
Ubuntu:22.04:LTSaom3.3.0-1ubuntu0.1UBUNTU-CVE-2024-5171
Ubuntu:24.04:LTSaom3.8.2-2ubuntu0.1UBUNTU-CVE-2024-5171
Ubuntu:24.04:LTSaom3.8.2-2ubuntu0.1USN-6815-1

Affected products (as reported)

VendorProductVersions
libaom libaom 1.0.0 – before 3.9.0

Weakness: CWE-20 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References