Bug 2066439
Summary: | certmonger SEGV during rekey in FIPS mode | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Rob Crittenden <rcritten> | |
Component: | certmonger | Assignee: | Rob Crittenden <rcritten> | |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> | |
Severity: | high | Docs Contact: | ||
Priority: | medium | |||
Version: | 9.0 | CC: | gkaihoro, myusuf | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | certmonger-0.79.14-7.el9 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2150070 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-15 10:14:26 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2150070 |
Description
Rob Crittenden
2022-03-21 19:00:28 UTC
valgrind is detecting a couple of errors. The return value of malloc() is checked but it isn't enforced and a variable may be re-used later. It doesn't seem entirely related. ==19083== Invalid read of size 1 ==19083== at 0x1268C0: cm_store_hex_from_bin (store-gen.c:498) ==19083== by 0x144D3E: cm_keyiread_o_main.lto_priv.0 (keyiread-o.c:190) ==19083== by 0x12A5E0: cm_subproc_start (subproc.c:190) ==19083== by 0x11D58C: UnknownInlinedFun (keyiread-o.c:341) ==19083== by 0x11D58C: cm_keyiread_start (keyiread.c:41) ==19083== by 0x11D61E: cm_iterate_entry_init (iterate.c:479) ==19083== by 0x119247: UnknownInlinedFun (cm.c:146) ==19083== by 0x119247: main (main.c:286) ==19083== Address 0x6a71a8e is 0 bytes after a block of size 270 alloc'd ==19083== at 0x484486F: malloc (vg_replace_malloc.c:381) ==19083== by 0x144D17: cm_keyiread_o_main.lto_priv.0 (keyiread-o.c:187) ==19083== by 0x12A5E0: cm_subproc_start (subproc.c:190) ==19083== by 0x11D58C: UnknownInlinedFun (keyiread-o.c:341) ==19083== by 0x11D58C: cm_keyiread_start (keyiread.c:41) ==19083== by 0x11D61E: cm_iterate_entry_init (iterate.c:479) ==19083== by 0x119247: UnknownInlinedFun (cm.c:146) ==19083== by 0x119247: main (main.c:286) ==19083== ==19083== Invalid read of size 1 ==19083== at 0x1268D4: cm_store_hex_from_bin (store-gen.c:499) ==19083== by 0x144D3E: cm_keyiread_o_main.lto_priv.0 (keyiread-o.c:190) ==19083== by 0x12A5E0: cm_subproc_start (subproc.c:190) ==19083== by 0x11D58C: UnknownInlinedFun (keyiread-o.c:341) ==19083== by 0x11D58C: cm_keyiread_start (keyiread.c:41) ==19083== by 0x11D61E: cm_iterate_entry_init (iterate.c:479) ==19083== by 0x119247: UnknownInlinedFun (cm.c:146) ==19083== by 0x119247: main (main.c:286) ==19083== Address 0x6a71a8e is 0 bytes after a block of size 270 alloc'd ==19083== at 0x484486F: malloc (vg_replace_malloc.c:381) ==19083== by 0x144D17: cm_keyiread_o_main.lto_priv.0 (keyiread-o.c:187) ==19083== by 0x12A5E0: cm_subproc_start (subproc.c:190) ==19083== by 0x11D58C: UnknownInlinedFun (keyiread-o.c:341) ==19083== by 0x11D58C: cm_keyiread_start (keyiread.c:41) ==19083== by 0x11D61E: cm_iterate_entry_init (iterate.c:479) ==19083== by 0x119247: UnknownInlinedFun (cm.c:146) ==19083== by 0x119247: main (main.c:286) This isn't related to rekeying. It is failing trying to generate a DSA CSR whether a new or rekey. The key is generating ok, it seems only related to the CSR. The key file exists, contains a DSA key of the right size and openssl dsa can parse it without complaint (other than not being able to write PEM files on output). certmonger-0.79.9 removed the test csrgen-003-dsa with the message: Remove DSA testing for NSS which disables it in crypto policy DSA is disabled in DEFAULT crypto policy in F30+ Simo tells me that DSA is forcibly disabled in FIPS and not relying on policy. That explains why I didn't see a policy to kill it. I'll investigate further to see if I should disable DSA key type by passing --disable-dsa to configure in the build. Note that when not in FIPS mode a DSA key can be generated but the CA will not issue a certificate for it, logging: SEVERE: Unable to create enrollment request: Invalid Request Invalid Request [ snip backtrace ] Caused by: java.security.NoSuchAlgorithmException: no such algorithm: OID.2.16.840.1.101.3.4.3.2 for provider Mozilla-JSS So completely disabling DSA is not a reduction in functionality, more of an acceptance of reality. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (certmonger bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8059 |