RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 691351 - Segmentation fault when invalid Extended Key Usage is provided in Certificate Request
Summary: Segmentation fault when invalid Extended Key Usage is provided in Certificate...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: certmonger
Version: 6.1
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Nalin Dahyabhai
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-28 10:29 UTC by Kaleem
Modified: 2011-05-19 13:07 UTC (History)
3 users (show)

Fixed In Version: certmonger-0.40-1.el6
Doc Type: Bug Fix
Doc Text:
Previously, running the getcert command with an invalid Extended Key Usage parameter caused a segmentation fault. This happened because the command attempted to dereference a NULL pointer while attempting to report that the parameter value was not a valid OID (Object Identifier). With this update, certmonger reports that the OID validation failed and prints a message that the provided Extended Key Usage is invalid.
Clone Of:
Environment:
Last Closed: 2011-05-19 13:07:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0570 0 normal SHIPPED_LIVE certmonger bug fix and enhancement update 2011-05-19 09:37:40 UTC

Description Kaleem 2011-03-28 10:29:22 UTC
Description of problem:
Segmentation fault when invalid string is provided for Extended Key usage(-U) in certificate request.


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

Name        : certmonger                   Relocations: (not relocatable)
Version     : 0.39                              Vendor: Red Hat, Inc.
Release     : 1.el6                         Build Date: Fri 25 Mar 2011 11:49:35 PM IST
Install Date: Mon 28 Mar 2011 01:02:52 PM IST      Build Host: x86-002.build.bos.redhat.com
Group       : System Environment/Daemons    Source RPM: certmonger-0.39-1.el6.src.rpm
Size        : 678726                           License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://certmonger.fedorahosted.org
Summary     : Certificate status monitor and PKI enrollment client

How reproducible:
Try to generate a certificate with invalid Extended Key Usage

Steps to Reproduce:
1.Issue a certificate request with invalid Extended Key Usage
  [root@dhcp193-17 ~]# selfsign-getcert request -d /tmp/kaleem/ -n test -U invalid
Segmentation fault (core dumped)
  
Actual results:
'Segmenation fault (core dumped)' is displayed on console.

Expected results:
A console message like 'Please provide valid Extended Key Usage' should have been displayed.

Additional info:
(1)Certmonger is running even after segmentation fault.
(2)There is no stack trace in gdb when this occurs.

Comment 4 Kaleem 2011-03-30 06:02:27 UTC
Verified.

RHEL Version:
[root@tiger ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.1 Beta (Santiago)

Certmonger Version :
[root@dhcp193-17 getcert_list]# rpm -qai certmonger |head
Name        : certmonger                   Relocations: (not relocatable)
Version     : 0.40                              Vendor: Red Hat, Inc.
Release     : 1.el6                         Build Date: Tue 29 Mar 2011 02:58:11 AM IST
Install Date: Wed 30 Mar 2011 11:26:04 AM IST      Build Host: x86-008.build.bos.redhat.com
Group       : System Environment/Daemons    Source RPM: certmonger-0.40-1.el6.src.rpm
Size        : 867380                           License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://certmonger.fedorahosted.org
Summary     : Certificate status monitor and PKI enrollment client

Steps used to verify:
(1)install certmonger
   [root@dhcp193-17 getcert_list]# yum install certmonger -y
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
INFO:rhsm-app.repolib:repos updated: 0
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package certmonger.x86_64 0:0.40-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
 Package                                Arch                               Version                                 Repository                           Size
=============================================================================================================================================================
Installing:
 certmonger                             x86_64                             0.40-1.el6                              rhel6.1                             190 k
Transaction Summary
=============================================================================================================================================================
Install       1 Package(s)

Total download size: 190 k
Installed size: 847 k
Downloading Packages:
certmonger-0.40-1.el6.x86_64.rpm                                                                                                      | 190 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : certmonger-0.40-1.el6.x86_64                                                                                                              1/1 
duration: 87(ms)
Installed products updated.
Installed:
  certmonger.x86_64 0:0.40-1.el6                                                                    Complete!

(2)start certmonger service
[root@dhcp193-17 getcert_list]# service certmonger start
Starting certmonger:                                       [  OK  ]

(3)Issue a certificate request with invalid extended key usage
[root@dhcp193-17 getcert_list]# selfsign-getcert request -d /tmp/kaleem/ -n test -U invalid
Could not evaluate OID "invalid".

Results:
Now segmentation fault is not there and following error message is displayed.
"Could not evaluate OID "invalid" ".

Comment 5 Eva Kopalova 2011-05-02 17:04:24 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously, running the getcert command with an invalid Extended Key Usage parameter caused a segmentation fault. This happened because the command attempted to dereference a NULL pointer while attempting to report that the parameter value was not a valid OID (Object Identifier). With this update, certmonger reports that the OID validation failed and prints a message that the provided Extended Key Usage is invalid.

Comment 6 errata-xmlrpc 2011-05-19 13:07:23 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0570.html


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