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:
When running a scan with OpenSCAP using the stig-rhel6-server-upstream policy, the resulting oval results file can contain hundreds of thousands of entries for the no_files_unowned_by_group rule. This creates memory allocation errors during report generation.
Version-Release number of selected component (if applicable):
0.1.21-3.el6
How reproducible:
Always
Steps to Reproduce:
1. Perform a Minimal Desktop installation (this probably doesn't matter, it's just how I tested it)
2. Install scap-security-guide:
yum install scap-security-guide
3. Run a scan with oval results and report generation:
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig-rhel6-server-upstream --results results.xml --report report.html --oval-results /usr/share/xml/scap/ssg/content/ssg-rhel6-ds.xml
Actual results:
... Scan processes and completes...
XPath error : Memory allocation failed : growing nodeset hit limit
growing nodeset hit limit
^
runtime error: file /usr/share/openscap/xsl/xccdf-report-oval-details.xsl line 39 element key
Failed to evaluate the 'match' expression.
XPath error : Memory allocation failed : growing nodeset hit limit
growing nodeset hit limit
^
runtime error: file /usr/share/openscap/xsl/xccdf-report-oval-details.xsl line 40 element key
Failed to evaluate the 'match' expression.
XPath error : Memory allocation failed : growing nodeset hit limit
growing nodeset hit limit
^
runtime error: file /usr/share/openscap/xsl/xccdf-report-oval-details.xsl line 41 element key
Failed to evaluate the 'match' expression.
XPath error : Memory allocation failed : growing nodeset hit limit
growing nodeset hit limit
^
runtime error: file /usr/share/openscap/xsl/xccdf-report-oval-details.xsl line 42 element key
Failed to evaluate the 'match' expression.
XPath error : Memory allocation failed : growing nodeset hit limit
growing nodeset hit limit
^
runtime error: file /usr/share/openscap/xsl/xccdf-report-oval-details.xsl line 43 element key
Failed to evaluate the 'match' expression.
Expected results:
Successful report generation
Additional info:
The resulting ssg-rhel6-oval.xml.results.xml file is ~300MiB and contains over 180k "tested_item" entries for oval:ssg:tst:776, the no_files_unowned_by_group rule. One entry for every file, with it's pas or fail status.
This has been fixed in the upstream SSG. The same rule now uses a different tests which is just the find command and only outputs the files that failed, thus the resulting oval results file is < 2MiB and is easily processed for report generation.
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, 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://rhn.redhat.com/errata/RHBA-2016-0846.html