CVE-2019-7317 - Use After Free

Severity

26%

Complexity

49%

Confidentiality

48%

png_image_free in png.c in libpng 1.6.x before 1.6.37 has a use-after-free because png_image_free_function is called under png_safe_execute.

png_image_free in png.c in libpng 1.6.x before 1.6.37 has a use-after-free because png_image_free_function is called under png_safe_execute.

CVSS 3.0 Base Score 5.3. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H).

CVSS 2.0 Base Score 2.6. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (AV:N/AC:H/Au:N/C:N/I:N/A:P).

Demo Examples

Use After Free

CWE-416

The following example demonstrates the weakness.


               
}
free(buf3R2);

Use After Free

CWE-416

The following code illustrates a use after free error:


               
}
free(ptr);
logError("operation aborted before commit", ptr);

When an error occurs, the pointer is immediately freed. However, this pointer is later incorrectly used in the logError function.

Overview

First reported 6 years ago

2019-02-04 08:29:00

Last updated 5 years ago

2019-08-01 17:15:00

Affected Software

libpng 1.6.36

1.6.36

Debian Linux 9.0

9.0

Canonical Ubuntu Linux 18.04 LTS Edition

18.04

Canonical Ubuntu Linux 18.10

18.10

References

openSUSE-SU-2019:1484

openSUSE-SU-2019:1534

openSUSE-SU-2019:1664

openSUSE-SU-2019:1916

openSUSE-SU-2019:1912

http://packetstormsecurity.com/files/152561/Slackware-Security-Advisory-libpng-Updates.html

Third Party Advisory, VDB Entry

108098

RHSA-2019:1265

RHSA-2019:1267

RHSA-2019:1269

RHSA-2019:1308

RHSA-2019:1309

RHSA-2019:1310

RHSA-2019:2494

RHSA-2019:2495

RHSA-2019:2585

RHSA-2019:2590

RHSA-2019:2592

RHSA-2019:2737

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12803

Mailing List, Third Party Advisory

https://github.com/glennrp/libpng/issues/275

Exploit, Issue Tracking, Third Party Advisory

[debian-lts-announce] 20190523 [SECURITY] [DLA 1800-1] firefox-esr security update

[debian-lts-announce] 20190527 [SECURITY] [DLA 1806-1] thunderbird security update

20190417 [slackware-security] libpng (SSA:2019-107-01)

Mailing List, Third Party Advisory

20190429 [SECURITY] [DSA 4435-1] libpng1.6 security update

Mailing List, Third Party Advisory

20190522 [slackware-security] mozilla-firefox (SSA:2019-141-01)

20190523 [SECURITY] [DSA 4448-1] firefox-esr security update

20190527 [SECURITY] [DSA 4451-1] thunderbird security update

GLSA-201908-02

https://security.netapp.com/advisory/ntap-20190719-0005/

https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbst03977en_us

USN-3962-1

Third Party Advisory

USN-3991-1

USN-3997-1

USN-4080-1

USN-4083-1

DSA-4435

Third Party Advisory

DSA-4448

DSA-4451

https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.