Bug 1304511

Summary: oscap oval eval --results produces CVE results for incorrect kernel
Product: Red Hat Enterprise Linux 6 Reporter: Bryan Totty <btotty>
Component: openscapAssignee: Šimon Lukašík <slukasik>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7CC: mpreisle, openscap-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-04 12:27:53 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:

Description Bryan Totty 2016-02-03 21:14:24 UTC
Description of problem:
The com.redhat.rhsa-all.xml is reporting incorrect kernel vulnerability updates required.
In this test, a RHEL 6.7 system is used and RHEL 6.4 vulnerabilities are reported as needing to be addressed.

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

$ cat uname -a
Linux rhel64-ia-01 2.6.32-573.12.1.el6.x86_64 #1 SMP Mon Nov 23 12:55:32 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)

openscap-1.0.10-3.el6.x86_64
openscap-scanner-1.0.10-3.el6.x86_64
openscap-utils-1.0.10-3.el6.x86_64


How reproducible:
Always.

Steps to Reproduce:

Reference URL- https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sect-Practical_Examples.html#sect-Auditing_Security_Vulnerabilities_Example

1. yum install openscap-utils
2. wget http://www.redhat.com/security/data/oval/com.redhat.rhsa-all.xml
3. oscap oval eval --results rhsa-results-oval.xml --report oval-report.html com.redhat.rhsa-all.xml


Actual results:
33 kernel errors. When selecting the link that describes the error, it shows CVEs/Patches for RHEL 6.4 (kernel-2.6.32-358.69.1.el6.x86_64). In this test, we are running RHEL 6.7 (2.6.32-573.12.1.el6.x86_64)

Expected results:
Only relevant CVEs/Patches for the correct kernel.

Comment 5 Martin Preisler 2016-02-04 10:45:36 UTC
Is kernel-2.6.32-358.69.1.el6.x86_64 installed on the machine? The CVE scan will report vulnerabilities for all installed packages, not just the ones that are running or in use.

Comment 6 Šimon Lukašík 2016-02-04 12:16:34 UTC
Hello Bryan,

Thanks time you spent filing this bug. Please communicate the following
to the customer.

Based on the sos report, on the system there are three kernels packages
installed:

    kernel-2.6.32-358.el6.x86_64
    kernel-2.6.32-504.23.4.el6.x86_64
    kernel-2.6.32-573.12.1.el6.x86_64

The vulnerability scan looks for any package that is vulnerable and is installed on the system. Hence you have got reports for kernel-2.6.32-358.el6.x86_64. The rationale is that here is a risk that someone would boot to this kernel package.