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
Alias: CVE-2022-1249
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
Whiteboard: ~4 [cleanup]
Depends on:
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: ---


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

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:
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):

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

    app-crypt/pesign: add 116
    Signed-off-by: Sam James <>

 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(+)