Use After Free Affecting curl-debuginfo package, versions <0:7.61.1-9.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.54% (78th 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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-CURLDEBUGINFO-1668915
  • published27 Sept 2021
  • disclosed31 Oct 2018

Introduced: 31 Oct 2018

CVE-2018-16840  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 curl-debuginfo to version 0:7.61.1-9.amzn2.0.1 or higher.
This issue was patched in ALAS2-2019-1162.

NVD Description

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

A heap use-after-free flaw was found in curl versions from 7.59.0 through 7.61.1 in the code related to closing an easy handle. When closing and cleaning up an 'easy' handle in the Curl_close() function, the library code first frees a struct (without nulling the pointer) and might then subsequently erroneously write to a struct field within that already freed struct.