CVE-2024-5197CWE-190

Integer overflow in libvpx

Medium · published June 3, 2024

CVSS v4.0
5.9
EPSS
1%
Percentile
56.6
In the wild
Unconfirmed
What it is

⚠️ Integer overflows in libvpx could lead to unexpected behavior! With versions prior to 1.14.1, calling functions with large parameters might throw your image handling system into chaos! 🔥 Think of it like overfilling a suitcase. If you stuff too many clothes in without considering the space, you risk breaking the zipper or creating a mess that can't be zipped shut. Similarly, passing oversized dimensions to vpx_img_alloc() or vpx_img_wrap() can lead to buffer size miscalculations that render the returned image structure unstable! An attacker could exploit this oversight to corrupt memory, leading to unexpected crashes or incorrect image processing. While it might not be the most devastating flaw, it certainly poses a risk for applications relying on libvpx for image handling and could lead to tricky bugs or crashes when handling large images.

Put simply

Think of it like overfilling a suitcase. If you stuff too many clothes in without considering the space, you risk breaking the zipper or creating a mess that can't be zipped shut. Similarly, passing oversized dimensions to vpx_img_alloc() or vpx_img_wrap() can lead to buffer size miscalculations that render the returned image structure unstable! This vulnerability arises from integer overflows in libvpx, specifically when calling vpx_img_alloc() and vpx_img_wrap() with excessively large width, height, or alignment parameters, causing invalid buffer sizes and offsets in the returned vpx_image_t struct.

What to do

An attacker could exploit this oversight to corrupt memory, leading to unexpected crashes or incorrect image processing. While it might not be the most devastating flaw, it certainly poses a risk for applications relying on libvpx for image handling and could lead to tricky bugs or crashes when handling large images. Upgrade to libvpx version 1.14.1 or later immediately to patch this vulnerability. Audit your code for any usage of vpx_img_alloc() and vpx_img_wrap() with large values to ensure stability and integrity. Regularly review updates to stay ahead of potential issues! You've got this! By following these steps, you’ll be on your way to securing your application in no time. 🛡️

The record
Technical detail
CVSS v4.0
5.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:L/SI:L/SA:N
EPSS
0.00814 · 56.6th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2024-06-03T13:30Z
EPSS history
Timeline
  • 03 JUN 13:30Z
    Integer overflow in libvpx
    cvelistv5