Bug 2118587 (CVE-2022-2963)

Summary: CVE-2022-2963 jasper: memory leaks in function cmdopts_parse
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: erik-fedora, jburrell, jridky, manisandro, pochu27, rh-spice-bugs, rjones
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability found in jasper. A memory leak bug occurs in the cmdopts_parse function, possibly causing a crash or segmentation fault.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2118589, 2118590, 2120654, 2120655, 2120656    
Bug Blocks: 2113812    

Comment 1 TEJ RATHI 2022-08-16 08:19:49 UTC
Created jasper tracking bugs for this issue:

Affects: fedora-all [bug 2118589]


Created mingw-jasper tracking bugs for this issue:

Affects: fedora-all [bug 2118590]

Comment 3 Emilio Pozuelo Monfort 2022-10-21 10:44:45 UTC
Hi,

The memory leaks happen when cmdline parsing fail, right before calling badusage(), which calls exit(EXIT_FAILURE). Thus from what I can see, the impact of the memory leak is nonexistent, because the process is terminating anyway. Is there something I am missing, or should this CVE be rejected?