Bug 2065771 (CVE-2022-1249)

Summary: CVE-2022-1249 pesign: NULL pointer dereference in cms_set_pw_data()
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bootloader-eng-team, fmartine, mjg59, pjones, rharwood
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: pesign 115 Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in pesign's cms_set_pw_data() function of the cms_common.c file. The function fails to handle the NULL pwdata invocation from daemon.c, which leads to an explicit NULL dereference and crash on all attempts to daemonize pesign.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-25 13:01:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2065772    
Bug Blocks: 2065773, 2072393    

Description Pedro Sampaio 2022-03-18 17:12:13 UTC
A flaw was found in pesign. The cms_set_pw_data function didn't handle the NULL pwdata invocation from daemon.c.  This leads to a explicit NULL dereference and crash on all attempts to daemonize pesign.

Introducing commit:


Upstream fix:


Comment 1 Pedro Sampaio 2022-03-18 17:12:51 UTC
Created pesign tracking bugs for this issue:

Affects: fedora-all [bug 2065772]