<?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>14630</bug_id>
          
          <creation_ts>2021-11-15 17:34:30 +0000</creation_ts>
          <short_desc>cve-check mishandles -</short_desc>
          <delta_ts>2023-04-03 08:58:27 +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>4.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>4.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Geoffrey Giry">geoffrey.giry</assigned_to>
          <cc>geoffrey.giry</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</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>92010</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-11-15 17:34:30 +0000</bug_when>
    <thetext>https://nvd.nist.gov/vuln/detail/CVE-2021-3682 has this CPE:

cpe:2.3:a:qemu:qemu:6.1.0:-:*:*:*:*:*:*

That means &quot;not 6.1.0&quot;. This isn&apos;t handled by our comparison logic as this CVE gets reported although have 6.1.0.

References to the specs:
https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf
https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7696.pdf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95061</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Giry">geoffrey.giry</who>
    <bug_when>2023-03-03 11:04:41 +0000</bug_when>
    <thetext>The hyphen (&quot;-&quot;) in the given CPE is part of the update field.

This field allows specifying the update name of the version.

From my understanding of the linked documentation, CPE should be read as follows:

cpe:2.3:a:qemu:qemu:6.1.0:rc1:*:*:*:*:*:* points to 6.1.0-rc1
cpe:2.3:a:qemu:qemu:6.1.0:-:*:*:*:*:*:* points to 6.1.0, with no update applied
cpe:2.3:a:qemu:qemu:6.1.0:*:*:*:*:*:*:* points to all updates of 6.1.0

If I misunderstood the notation, can you please point to the part of the doc detailing the usage of hyphen to means &quot;not in&quot;?

If I did understand the notation correctly, then I think the issue is in NVD, and the line cpe:2.3:a:qemu:qemu:6.1.0:-:*:*:*:*:*:* should not be listed as impacted configuration.
And in that case I think cve-check works as intended</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95083</commentid>
    <comment_count>2</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-03-07 17:28:29 +0000</bug_when>
    <thetext>Ross, what do you think about the above comment?
(Setting NEEDINFO and owner)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95244</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-03-30 16:05:24 +0000</bug_when>
    <thetext>I like that argument.  Geoffrey: would you be willing to contact NIST and get the CPE updated?  If they accept the changes, I was wrong, and we can close this bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95249</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Giry">geoffrey.giry</who>
    <bug_when>2023-03-31 07:30:51 +0000</bug_when>
    <thetext>Ross, I have sent a mail to NVD for change.
I will update the ticket as soon as I have news</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95263</commentid>
    <comment_count>5</comment_count>
    <who name="Geoffrey Giry">geoffrey.giry</who>
    <bug_when>2023-03-31 22:02:24 +0000</bug_when>
    <thetext>I already have news, NVD approved the change and the CVE page is already updated: https://nvd.nist.gov/vuln/detail/CVE-2021-3682

Therefore, I am closing this ticket.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95274</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-04-03 08:58:27 +0000</bug_when>
    <thetext>Perfect, thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>