Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 842228 (CVE-2022-1249)

Summary: <app-crypt/pesign-116: null pointer dereference
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: IN_PROGRESS ---    
Severity: trivial CC: maintainer-needed
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=2065771
Whiteboard: ~4 [cleanup]
Package list:
Runtime testing required: ---

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-05-02 20:06:25 UTC
CVE-2022-1249:

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.

Fix in 115: https://github.com/rhboot/pesign/commit/b879dda52f8122de697d145977c285fb0a022d76
Comment 1 Larry the Git Cow gentoo-dev 2023-10-04 16:50:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=611739f6d355367906a758a61282ecce8ed82f7a

commit 611739f6d355367906a758a61282ecce8ed82f7a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-04 16:02:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-04 16:47:15 +0000

    app-crypt/pesign: add 116
    
    Bug: https://bugs.gentoo.org/842228
    Bug: https://bugs.gentoo.org/897706
    Closes: https://bugs.gentoo.org/892932
    Signed-off-by: Sam James <sam@gentoo.org>

 app-crypt/pesign/Manifest                         |  1 +
 app-crypt/pesign/files/pesign-116-no-werror.patch | 11 +++++
 app-crypt/pesign/pesign-116.ebuild                | 57 +++++++++++++++++++++++
 3 files changed, 69 insertions(+)