<?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>16158</bug_id>
          
          <creation_ts>2026-02-03 22:36:09 +0000</creation_ts>
          <short_desc>patchtest should trigger the &quot;CVE: CVE-XXXX-YYYY&quot; test for added &quot;CVE-XXXX-YYYY.patch&quot; file</short_desc>
          <delta_ts>2026-10-30 14:56:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest Testsuite</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>ccasciato</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>104144</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-02-03 22:36:09 +0000</bug_when>
    <thetext>Right now, patchtest only test for &quot;CVE: CVE-XXXX-YYYY&quot; in patches if a &quot;CVE-XXXX-YYYY&quot; is present in title or commit message[0].

But a user could (and did[0]) send a CVE fixing patch without a CVE-XXXX-YYYY in neither commit message nor title.

=&gt; patchtest should trigger the &quot;CVE: CVE-XXXX-YYYY&quot; test for added &quot;CVE-XXXX-YYYY.patch&quot; file
Looking for CVE-XXXX-YYYY in added patch body might lead to too much false positive but in the filename, I feel like it should be fine.

[0]: https://git.openembedded.org/openembedded-core/tree/meta/lib/patchtest/tests/test_patch.py#n166
[1]: https://lists.openembedded.org/g/openembedded-core/message/229210</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>