Bug 2324820 - kdeconnectd dumps core due to QCA unconditionally using EVP_sha1()
Summary: kdeconnectd dumps core due to QCA unconditionally using EVP_sha1()
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: qca
Version: epel9
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-09 02:28 UTC by Taketo Kabe
Modified: 2024-11-09 02:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to use EVP_sha256() instead of EVP_sha1(), if available (3.28 KB, message/rfc822)
2024-11-09 02:28 UTC, Taketo Kabe
no flags Details

Description Taketo Kabe 2024-11-09 02:28:50 UTC
Created attachment 2056595 [details]
patch to use EVP_sha256() instead of EVP_sha1(), if available

Description of problem:

kdeconnectd-23.08.5 uses KDE QCA to generate a self-signed certificate.
But it could not generate a proper X509 certificate by using EVP_sha1(),
because RHEL 9 family disables SHA-1 system-wide.
This causes X509 certificate lacking a signature, 
could not write a proper PEM to ~/.config/kdeconnect/certificate.pem,
and dumps core.


Version-Release number of selected component (if applicable):

Linux/KDE Plasma: kernel-5.14.0-427.16.1.el9_4 
KDE Plasma Version: plasma-workspace-common-5.27.11-1
KDE Frameworks Version: kf5-filesystem-5.115.0
Qt Version: qt5-qtbase-5.15.9
kdeconnectd Version: 23.08.5
qca Version: 2.3.6

How reproducible:
always

Steps to Reproduce:
1.  pkill kdeconnectd
2. QT_LOGGING_RULES='kdeconnect.core.debug=true' /usr/libexec/kdeconnectd

Actual results:
$ QT_LOGGING_RULES="kdeconnect.core.debug=true" /usr/libexec/kdeconnectd
kdeconnect.core: Daemon starting
kdeconnect.core: Certificate from "/home/kabe/.config/kdeconnect/certificate.pem" is not valid
kdeconnect.core: Generating certificate
kdeconnect.core: My id: "_22bbbb44_27a2_4e53_a567_084181656731_"
kdeconnect.daemon: "KDE Connect" : "Could not store certificate file: /home/kabe/.config/kdeconnect/certificate.pem"
kdeconnect.core: LanLinkProvider started
kdeconnect.core: Daemon started
kdeconnect.core: Broadcasting identity packet
Segmentation fault (core dumped)


Expected results:
kdeconnectd continues to run

Additional info:
The attached patch seems to fix this.

Upstream refused this patch:
https://bugs.kde.org/show_bug.cgi?id=495969


Note You need to log in before you can comment on or make changes to this bug.