Double Free Affecting libwebp-debuginfo package, versions <0:1.2.4-1.amzn2023.0.4


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

Social Trends
EPSS
0.95% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-LIBWEBPDEBUGINFO-5671225
  • published8 Jun 2023
  • disclosed20 Jun 2023

Introduced: 8 Jun 2023

CVE-2023-1999  (opens in a new tab)
CWE-415  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 libwebp-debuginfo to version 0:1.2.4-1.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2023-185.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libwebp-debuginfo package and not the libwebp-debuginfo package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

There exists a use after free/double free in libwebp. An attacker can use the ApplyFiltersAndEncode() function and loop through to free best.bw and assign best = trial pointer. The second loop will then return 0 because of an Out of memory error in VP8 encoder, the pointer is still assigned to trial and the AddressSanitizer will attempt a double free.

CVSS Base Scores

version 3.1