<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13617</bug_id>
          
          <creation_ts>2019-11-08 13:05:02 +0000</creation_ts>
          <short_desc>CVE version checking fails if the version is -</short_desc>
          <delta_ts>2020-04-02 06:13:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>cve-check.bbclass</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Chee Yang">chee.yang.lee</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85505</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-11-08 13:05:02 +0000</bug_when>
    <thetext>CPE version fields can be - to mean N/A, instead of * to mean ANY.

This trips up the version parsing, and e.g. falsely report that thermald 1.9 is not vulnerable to CVE-2014-2312 when it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85506</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-11-08 13:06:19 +0000</bug_when>
    <thetext>The CPE for that example is:

 cpe:2.3:a:debian:thermald:-:*:*:*:*:*:*:*</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86862</commentid>
    <comment_count>2</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2020-03-30 09:30:21 +0000</bug_when>
    <thetext>is it mean version &apos;-&apos; should be treat as any/all version too?

the given example CVE updated with new CPE with version number specified.

but there are other CVE with version &apos;-&apos;, example 

  https://nvd.nist.gov/vuln/detail/CVE-2018-16869  with CPE
  cpe:2.3:a:nettle_project:nettle:-:*:*:*:*:*:*:*

and 

  https://nvd.nist.gov/vuln/detail/CVE-2017-6386 with CPE
  cpe:2.3:a:virglrenderer_project:virglrenderer:-:*:*:*:*:*:*:*</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86884</commentid>
    <comment_count>3</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2020-04-02 06:13:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7c37e5c7cd4507c5d9e05de6e0d78cfb7e37ae9e
this should report all the CVe with no version info</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>