<?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>14941</bug_id>
          
          <creation_ts>2022-10-19 21:53:39 +0000</creation_ts>
          <short_desc>test_shallow_submodules (bb.tests.fetch.GitShallowTest) failure because of git CVE fix</short_desc>
          <delta_ts>2022-10-27 15:14:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>bitbake-selftest</component>
          <version>unspecified</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>backport all branches</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Alexandre Belloni">alexandre.belloni</assigned_to>
          <cc>randy.macleod</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>94203</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-10-19 21:53:39 +0000</bug_when>
    <thetext>======================================================================
ERROR: test_shallow_submodules (bb.tests.fetch.GitShallowTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/tests/fetch.py&quot;, line 1872, in test_shallow_submodules
    self.git(&apos;submodule add file://%s&apos; % smdir, cwd=self.srcdir)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/tests/fetch.py&quot;, line 423, in git
    return bb.process.run(cmd, cwd=cwd)[0]
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/bitbake/lib/bb/process.py&quot;, line 189, in run
    raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of &apos;git submodule add file:///tmp/bitbake-fetch-hp5nq_8y/gitsubmodule&apos; failed with exit code 128:
Cloning into &apos;/tmp/bitbake-fetch-hp5nq_8y/gitsource/gitsubmodule&apos;...
fatal: transport &apos;file&apos; not allowed
fatal: clone of &apos;file:///tmp/bitbake-fetch-hp5nq_8y/gitsubmodule&apos; into submodule path &apos;/tmp/bitbake-fetch-hp5nq_8y/gitsource/gitsubmodule&apos; failed



file:// transport is disabled in git until there is a fix for CVE-2022-39253. The first impacted host is ubuntu 22.04 but all distributions will probably follow:
http://changelogs.ubuntu.com/changelogs/pool/main/g/git/git_2.34.1-1ubuntu1.5/changelog
https://git.launchpad.net/ubuntu/+source/git/tree/debian/patches/CVE-2022-39253-1.patch?h=applied/ubuntu/jammy-security</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94214</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-10-20 14:56:30 +0000</bug_when>
    <thetext>Alex has a work-around which has been applied to both dunfell and kirkstone. We need a better fix.

It seems that we should disable the test until the CVE is resolved properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94220</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-10-20 15:38:56 +0000</bug_when>
    <thetext>The actual patch breaking things is https://git.launchpad.net/ubuntu/+source/git/tree/debian/patches/CVE-2022-39253-11.patch?h=applied/ubuntu/jammy-security

And the fix seems to be using -c protocol.file.allow=always

I&apos;ll prepare a patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94276</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-10-27 15:14:07 +0000</bug_when>
    <thetext>Fixed by https://git.openembedded.org/bitbake/commit/?id=074da4c469d1f4177a1c5be72b9f3ccdfd379d67</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>