Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Found by testing with cvrf.xml on portal, e.g.
https://access.redhat.com/labs/securitydataapi/cvrf.xml
But seems to be the same result with an empty xml file too.
Version-Release number of selected component (if applicable):
openscap-scanner-1.2.16-8.el7_5.x86_64
How reproducible:
Every time.
Steps to Reproduce:
1. $ yum install -y openscap-scanner
2. $ touch foo.xml
3. $ oscap cvrf eval foo.xml
Actual results:
Segmentation Fault
Expected results:
No segfault
Additional info:
Backtrace:
#0 0x00007ffff4b486e9 in cvrf_model_filter_by_cpe (model=0x0,
cpe=0x600c0000bde0 "Red Hat Enterprise Linux Desktop Supplementary (v. 6)")
at cvrf_priv.c:1293
#1 0x00007ffff4b4d35e in find_all_cvrf_product_ids_from_cpe (
session=session@entry=0x60080000a4d0) at cvrf_eval.c:172
#2 0x00007ffff4b4debe in cvrf_model_get_results_source (import_source=<optimized out>,
os_name=os_name@entry=0x555555584660 "Red Hat Enterprise Linux Desktop Supplementary (v. 6)") at cvrf_eval.c:230
#3 0x0000555555574c58 in app_cvrf_evaluate (action=0x7fffffffe2c0) at oscap-cvrf.c:102
#4 0x0000555555566e16 in oscap_module_call (action=0x7fffffffe2c0) at oscap-tool.c:261
#5 oscap_module_process (module=0x55555578ffc0 <CVRF_EVALUATE_MODULE>,
module@entry=0x55555578a120 <OSCAP_ROOT_MODULE>, argc=argc@entry=4,
argv=argv@entry=0x7fffffffe5b8) at oscap-tool.c:346
#6 0x0000555555564c32 in main (argc=4, argv=0x7fffffffe5b8) at oscap.c:83
It is important to say that CVRF module in OpenSCAP doesn't work at all.
I can reproduce the segmentation fault. I could do a quick patch for the segfault, but result would be it will print out some error message instead.
I also noticed that the CVRF document you linked has root element "Cvrfs", but according to CVRF v1.1 XML schema it should be "cvrfdoc". Is that document following a different standard?
Do you have an intention to use CVRF? Is there any possible use-case for it?
(In reply to Jan Černý from comment #2)
> It is important to say that CVRF module in OpenSCAP doesn't work at all.
>
> I can reproduce the segmentation fault. I could do a quick patch for the
> segfault, but result would be it will print out some error message instead.
I suspected the CVRF module was not supported, but it was not clear to me. I would definitely prefer a meaningful error message to a segfault.
> I also noticed that the CVRF document you linked has root element "Cvrfs",
> but according to CVRF v1.1 XML schema it should be "cvrfdoc". Is that
> document following a different standard?
I'm not familiar enough with the standards to say.
> Do you have an intention to use CVRF? Is there any possible use-case for it?
I don't have any specific use-case for CVRF. I was just exploring different uses of Red Hat's security data with oscap when I stumbled across the crash.
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 (openscap 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-2020:3914