openssl: upgrade to 1.1.1m for CVE-2021-4160
PATCH v2 1/1 openssl: upgrade to 1.1.1m for CVE-2021-4160
Changes are only security and bug fixes.
https://www.openssl.org/news/cl111.txt
https://git.openssl.org/?p=openssl.git;a=log;h=refs/tags/OpenSSL_1_1_1m
CVE: CVE-2021-4160
https://nvd.nist.gov/vuln/detail/CVE-2021-4160
---
Changes in v2:
- drop SRC_URI[md5sum] that devtool snuck in.
.../openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} (98%)meta/recipes-connectivity/openssl/openssl_1.1.1m.bb renamed from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb +1 -1
@@ -24,7 +24,7 @@ SRC_URI_append_class-nativesdk = " \ file://environment.d-openssl.sh \ " -SRC_URI[sha256sum] = "0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1" +SRC_URI[sha256sum] = "f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" inherit lib_package multilib_header multilib_script ptest MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash"
Signature · 1 line
2.30.2
Quoted 2 lines · Tim Orling
Changes are only security and bug fixes.
I'm seeing ptest errors:
WARNING: core-image-sato-sdk-ptest-1.0-r0 do_testimage: There were
failing ptests.
Traceback (most recent call last):
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 36, in wrapped_f
return func(*args, **kwargs)
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 36, in wrapped_f
return func(*args, **kwargs)
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 36, in wrapped_f
return func(*args, **kwargs)
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py",
line 25, in test_ptestrunner_expectfail
self.do_ptestrunner()
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py",
line 108, in do_ptestrunner
self.fail(failmsg)
AssertionError: Failed ptests:
{'openssl': ['test/recipes/30-test_evp_extra.t,_test_returned_1']}
Happens with both qemuarm64-ptest and qemux86-64-ptest:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2863
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3124
Steve
Quoted 35 lines
https://www.openssl.org/news/cl111.txt
https://git.openssl.org/?p=openssl.git;a=log;h=refs/tags/OpenSSL_1_1_1mCVE: CVE-2021-4160
https://nvd.nist.gov/vuln/detail/CVE-2021-4160
Signed-off-by Tim Orling <[email protected]>---
Changes in v2:
- drop SRC_URI[md5sum] that devtool snuck in..../openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} (98%)meta/recipes-connectivity/openssl/openssl_1.1.1m.bb renamed from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb +1
-2@@ -24,7 +24,7 @@ SRC_URI_append_class-nativesdk = " \ file://environment.d-openssl.sh \ " -SRC_URI[sha256sum] = "0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1" +SRC_URI[sha256sum] = "f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" inherit lib_package multilib_header multilib_script ptest MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash" --2.30.2
Quoted 23 lines · Steve Sakoman
Quoted 2 lines · Tim Orling
Changes are only security and bug fixes.
I'm seeing ptest errors:
WARNING: core-image-sato-sdk-ptest-1.0-r0
do_testimage: There were
failing ptests.
Traceback (most recent call last):
File
"/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, inwrapped_f
returnfunc(*args, **kwargs)
File
"/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, inwrapped_f
returnfunc(*args, **kwargs)
File
"/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py", line 36, inwrapped_f
returnfunc(*args, **kwargs)
File
"/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py",
Quoted 9 lines
line 25, in
test_ptestrunner_expectfail
self.do_ptestrunner()
File
"/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py", line 108, indo_ptestrunner
self.fail(failmsg)
AssertionError: Failed ptests:
{'openssl': ['test/recipes/30-test_evp_extra.t,_test_returned_1']}
I saw this on qemux86-64, but was not sure it was due to the upgrade or a one off infra issue. I’ll dig deeper and see what might be happening.
Quoted 47 lines
Happens with both qemuarm64-ptest and qemux86-64-ptest:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2863
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3124Steve
Quoted 7 lines
https://www.openssl.org/news/cl111.txt
https://git.openssl.org/?p=openssl.git;a=log;h=refs/tags/OpenSSL_1_1_1mCVE: CVE-2021-4160
Quoted 8 lines
Signed-off-by Tim Orling <[email protected]>---
Changes in v2:
- drop SRC_URI[md5sum] that devtool snuck in..../openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb =>openssl_1.1.1m.bb} (98%)
Review
Quoted 2 lines
(quoted diff) +0
-0b/meta/recipes-connectivity/openssl/openssl_1.1.1m.bb
meta/recipes-connectivity/openssl/openssl_1.1.1m.bb SRC_URI_append_class-nativesdk = " \ · line 27
Quoted 11 lines
similarity index 98%
rename from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb rename to meta/recipes-connectivity/openssl/openssl_1.1.1m.bb indexbf7cd6527ef..c6f8499d4f5100644meta/recipes-connectivity/openssl/openssl_1.1.1m.bb renamed from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb +0
-1@@ -24,7 +24,7 @@ SRC_URI_append_class-nativesdk = " \ file://environment.d-openssl.sh \ " -SRC_URI[sha256sum] ="
0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1"meta/recipes-connectivity/openssl/openssl_1.1.1m.bb SRC_URI_append_class-nativesdk = " \ · line 27
Quoted 1 line
meta/recipes-connectivity/openssl/openssl_1.1.1m.bb renamed from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb +1
-0+SRC_URI[sha256sum] ="
f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96"Quoted 6 lines
meta/recipes-connectivity/openssl/openssl_1.1.1m.bb renamed from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb +0
-1inherit lib_package multilib_header multilib_script ptest MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash" --2.30.2
Quoted 33 lines · Tim Orling
Quoted 19 lines · Steve Sakoman
Quoted 2 lines · Tim Orling
Changes are only security and bug fixes.
I'm seeing ptest errors:
WARNING: core-image-sato-sdk-ptest-1.0-r0
do_testimage: There were
failing ptests.
Traceback (most recent call last):
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 36, inwrapped_f
returnfunc(*args, **kwargs)
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 36, inwrapped_f
returnfunc(*args, **kwargs)
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 36, inwrapped_f
returnfunc(*args, **kwargs)Quoted 8 lines
File "
/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py",
line 25, intest_ptestrunner_expectfail
self.do_ptestrunner()
File "/home/pokybuild/yocto-worker/qemux86-64-ptest/build/meta/lib/oeqa/runtime/cases/ptest.py",
line 108, indo_ptestrunner
self.fail(failmsg)
AssertionError: Failed ptests:
{'openssl': ['test/recipes/30-test_evp_extra.t,_test_returned_1']}
Quoted 1 line
I saw this on qemux86-64, but was not sure it was due to the upgrade or a one off infra issue. I’ll dig deeper and see what might be happening.
I re-ran the test and got the same error, so it doesn't seem to be intermittent.
Thanks!
Steve
Quoted 44 lines
Quoted 44 lines
Happens with both qemuarm64-ptest and qemux86-64-ptest:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2863
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/3124Steve
Quoted 35 lines
https://www.openssl.org/news/cl111.txt
https://git.openssl.org/?p=openssl.git;a=log;h=refs/tags/OpenSSL_1_1_1mCVE: CVE-2021-4160
https://nvd.nist.gov/vuln/detail/CVE-2021-4160
Signed-off-by Tim Orling <[email protected]>---
Changes in v2:
- drop SRC_URI[md5sum] that devtool snuck in..../openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-connectivity/openssl/{openssl_1.1.1l.bb => openssl_1.1.1m.bb} (98%)meta/recipes-connectivity/openssl/openssl_1.1.1m.bb renamed from meta/recipes-connectivity/openssl/openssl_1.1.1l.bb +1
-2@@ -24,7 +24,7 @@ SRC_URI_append_class-nativesdk = " \ file://environment.d-openssl.sh \ " -SRC_URI[sha256sum] = "0b7a3e5e59c34827fe0c3a74b7ec8baef302b98fa80088d7f9153aa16fa76bd1" +SRC_URI[sha256sum] = "f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" inherit lib_package multilib_header multilib_script ptest MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash" --2.30.2
FWIW, there is also the pure patch to fix CVE-2021-4160 in openssl 1.1.1l for dunfell:
https://lists.openembedded.org/g/openembedded-core/message/161652
Patch versus letter version update, which one is preferred?
-Mikko
Quoted 6 lines · On Sun, Feb 20, 2022 at 9:04 PM <[email protected]> wrote:
FWIW, there is also the pure patch to fix CVE-2021-4160 in openssl 1.1.1l for dunfell:
https://lists.openembedded.org/g/openembedded-core/message/161652
Patch versus letter version update, which one is preferred?
Yes, I'm aware of the CVE only patch. In this case I'd prefer the letter version update since it also contains bug fixes. But if we can't fix the ptest regression in the next couple of days I'll fall back to the CVE only patch.
Steve
Quoted 2 lines
-Mikko