Bug 1948692 (CVE-2021-30500)

Summary: CVE-2021-30500 upx: Null pointer dereference in PackLinuxElf::canUnpack() in p_lx_elf.cpp
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: carnil, gwync
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-13 00:38:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1948693, 1948694    
Bug Blocks: 1948699    

Description Pedro Sampaio 2021-04-12 18:37:55 UTC
Null pointer dereference was found in upx PackLinuxElf::canUnpack() in p_lx_elf.cpp,in version UPX 4.0.0. That allow attackers to execute
arbitrary code and cause a denial of service via a crafted file.

Upstream issue:

https://github.com/upx/upx/issues/48

Upstream patch:

https://github.com/upx/upx/commit/90279abdfcd235172eab99651043051188938dcc

Comment 1 Pedro Sampaio 2021-04-12 18:38:22 UTC
Created upx tracking bugs for this issue:

Affects: epel-all [bug 1948693]
Affects: fedora-all [bug 1948694]

Comment 2 Product Security DevOps Team 2021-04-13 00:38:56 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Comment 3 Salvatore Bonaccorso 2021-04-13 07:02:09 UTC
(In reply to Pedro Sampaio from comment #0)
> Null pointer dereference was found in upx PackLinuxElf::canUnpack() in
> p_lx_elf.cpp,in version UPX 4.0.0. That allow attackers to execute
> arbitrary code and cause a denial of service via a crafted file.
> 
> Upstream issue:
> 
> https://github.com/upx/upx/issues/48
> 
> Upstream patch:
> 
> https://github.com/upx/upx/commit/90279abdfcd235172eab99651043051188938dcc



Should the upstream issue to b referenced be https://github.com/upx/upx/issues/485 (missing last 5 digit in the issue number instead of 48)?

Comment 4 Gwyn Ciesla 2021-04-13 13:13:17 UTC
Yes, that's correct.