Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842228 (CVE-2022-1249) - <app-crypt/pesign-116: null pointer dereference
Summary: <app-crypt/pesign-116: null pointer dereference
Status: IN_PROGRESS
Alias: CVE-2022-1249
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: ~4 [cleanup]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-02 20:06 UTC by John Helmert III
Modified: 2023-10-04 16:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)