Bug 1889486 (CVE-2019-14584) - CVE-2019-14584 edk2: NULL pointer dereference in AuthenticodeVerify()
Summary: CVE-2019-14584 edk2: NULL pointer dereference in AuthenticodeVerify()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2019-14584
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1889878 1889877 1890621 1910517
Blocks: 1889487
TreeView+ depends on / blocked
 
Reported: 2020-10-19 18:43 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-09-26 14:53 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-28 12:10:01 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
TianoCore 1914 0 None None None 2020-10-20 08:55:17 UTC

Description Guilherme de Almeida Suckevicz 2020-10-19 18:43:26 UTC
AuthenticodeVerify() calls OpenSSLs d2i_PKCS7() API to parse asn encoded signed authenticode pkcs#7 data. when this successfully returns, a type check is done by calling PKCS7_type_is_signed() and then Pkcs7->d.sign->contents->type is used. It is possible to construct an asn1 blob that successfully decodes and have d2i_PKCS7() return a valid pointer and have PKCS7_type_is_signed() also return success  but have Pkcs7->d.sign be a NULL pointer.

Reference:
https://bugzilla.tianocore.org/show_bug.cgi?id=1914

Comment 1 Guilherme de Almeida Suckevicz 2020-10-20 19:06:52 UTC
Created edk2 tracking bugs for this issue:

Affects: epel-all [bug 1889878]
Affects: fedora-all [bug 1889877]

Comment 2 Laszlo Ersek 2020-10-21 12:42:19 UTC
Upstream commit 26442d11e620 ("CryptoPkg/BaseCryptLib: fix NULL dereference (CVE-2019-14584)", 2020-10-21).

Comment 3 Riccardo Schirone 2020-10-21 15:30:08 UTC
Upstream patch:
https://github.com/tianocore/edk2/commit/26442d11e620a9e81c019a24a4ff38441c64ba10


Note You need to log in before you can comment on or make changes to this bug.