From patchwork Sat Mar 5 00:30:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: akuster808 X-Patchwork-Id: 4711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49CFBC433EF for ; Sat, 5 Mar 2022 00:30:32 +0000 (UTC) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mx.groups.io with SMTP id smtpd.web11.1311.1646440231568524200 for ; Fri, 04 Mar 2022 16:30:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f0A+x9v3; spf=pass (domain: gmail.com, ip: 209.85.216.44, mailfrom: akuster808@gmail.com) Received: by mail-pj1-f44.google.com with SMTP id m11-20020a17090a7f8b00b001beef6143a8so9348177pjl.4 for ; Fri, 04 Mar 2022 16:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=aI7Rmy3oYxZ/hsFDo5uDMnZ0r4PsuOHT/NdrUIWDBqk=; b=f0A+x9v36He3PH1jxDtETKspgUPRMubUSNJ2BDJENW3e7gQiWG+Fr0wouhE2rfNmi1 90NaZAFIStN1WKx+dgtfw7F5EuuBmyN1Qqf6TuZnROxefI2kvwSZmNknKoo4O2/iajIy Te+BDaKjzLdqQk3Y5YqW5KmilpPljvlnFkSMSc4q4/1sSkgPFeYrzaHdBh7GqpJLyC6e 8KhqF1/derc/QkqAvNTQZ5JADKd6Cy+FNRPOlS80XA4fV2kJFZOiT6XO9HmMPLWgPY2w 6wy7eODM4UkwipDpojg5I+6kab2jXuXMl5NsAMubZ0xAKb6GJuYw0iMyY6D5Elz5h7// TpeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=aI7Rmy3oYxZ/hsFDo5uDMnZ0r4PsuOHT/NdrUIWDBqk=; b=640FXACqNvoI1xPKRdRzCRSitWmlRL4iwt/4hXzX5uH5bkl6+4HG3kSQwUE4D+muKg dA32Bn1SfDCzGe1AWAV7XOvDab40zjOLnXnpQnYMSRIIdBfHHIud6m1NxD/HWlT4SYFr 4KLoGnS3tIGxnqqNcm68fQpGbFYEDg7Zpv7SS/TS2JNS0Ngw75m42bmK4OCPzrjB+ewt L++Nwe2waLGKrz1N6LCq8S4tRq3ULbWQ94jeHkMeIfm10ZgbhZim2ABExchhvfO7m6Ke qR7U1by6CXrpd4VUoyWCO6gWN/7R7H4em4hHcr70db+hFCc1q2ZK+bzhEHpRecHmfCgV 4tVQ== X-Gm-Message-State: AOAM5300WUbqq7n1oJDkKaGJXcOvPwGW0MM+KqumPLsQ0o8e0rMvEpZ6 qZJdMjl1W7REwvzfiWHHQOI/Qa89Rrg= X-Google-Smtp-Source: ABdhPJz+IcZvVJmPJPahXn5lrR7ZpTgcPn1q1mGMu3G8+jk/7Qd0IW7cW4T2Hcxiewk30Vv7BUDGpw== X-Received: by 2002:a17:903:247:b0:151:b174:fba9 with SMTP id j7-20020a170903024700b00151b174fba9mr918200plh.79.1646440230573; Fri, 04 Mar 2022 16:30:30 -0800 (PST) Received: from keaua.caveonetworks.com ([2601:202:4180:a5c0:4a57:ddb1:e4ac:8918]) by smtp.gmail.com with ESMTPSA id z23-20020a056a001d9700b004f6d2974269sm286659pfw.113.2022.03.04.16.30.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 16:30:30 -0800 (PST) From: Armin Kuster To: yocto@lists.yoctoproject.org Subject: [meta-security][PATCH 1/2] swtpm: update to 0.7.1 Date: Fri, 4 Mar 2022 16:30:28 -0800 Message-Id: <20220305003029.3893656-1-akuster808@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 05 Mar 2022 00:30:32 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/56372 fixes: CVE-2022-23645. Add implementation of SWTPM_HMAC using OpenSSL 3.0 APIs Signed-off-by: Armin Kuster --- .../swtpm/files/oe_configure.patch | 65 ------------------- .../swtpm/{swtpm_0.6.1.bb => swtpm_0.7.1.bb} | 5 +- 2 files changed, 2 insertions(+), 68 deletions(-) delete mode 100644 meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch rename meta-tpm/recipes-tpm/swtpm/{swtpm_0.6.1.bb => swtpm_0.7.1.bb} (94%) diff --git a/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch b/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch deleted file mode 100644 index 5aee933..0000000 --- a/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch +++ /dev/null @@ -1,65 +0,0 @@ -Don't check for tscd deamon on host. - -Upstream-Status: OE Specific - -Signed-off-by: Armin Kuster - -Index: git/configure.ac -=================================================================== ---- git.orig/configure.ac -+++ git/configure.ac -@@ -179,15 +179,6 @@ AC_SUBST([LIBTPMS_LIBS]) - AC_CHECK_LIB(c, clock_gettime, LIBRT_LIBS="", LIBRT_LIBS="-lrt") - AC_SUBST([LIBRT_LIBS]) - --AC_PATH_PROG([TCSD], tcsd) --if test "x$TCSD" = "x"; then -- have_tcsd=no -- AC_MSG_WARN([tcsd could not be found; typically need it for tss user account and tests]) --else -- have_tcsd=yes --fi --AM_CONDITIONAL([HAVE_TCSD], test "$have_tcsd" != "no") -- - dnl We either need netstat (more common across systems) or 'ss' for test cases - AC_PATH_PROG([NETSTAT], [netstat]) - if test "x$NETSTAT" = "x"; then -@@ -440,23 +431,6 @@ AC_ARG_WITH([tss-group], - [TSS_GROUP="tss"] - ) - --case $have_tcsd in --yes) -- AC_MSG_CHECKING([whether TSS_USER $TSS_USER is available]) -- if ! test $(id -u $TSS_USER); then -- AC_MSG_ERROR(["$TSS_USER is not available"]) -- else -- AC_MSG_RESULT([yes]) -- fi -- AC_MSG_CHECKING([whether TSS_GROUP $TSS_GROUP is available]) -- if ! test $(id -g $TSS_GROUP); then -- AC_MSG_ERROR(["$TSS_GROUP is not available"]) -- else -- AC_MSG_RESULT([yes]) -- fi -- ;; --esac -- - AC_SUBST([TSS_USER]) - AC_SUBST([TSS_GROUP]) - -Index: git/tests/Makefile.am -=================================================================== ---- git.orig/tests/Makefile.am -+++ git/tests/Makefile.am -@@ -83,10 +83,6 @@ TESTS += \ - test_tpm2_swtpm_cert \ - test_tpm2_swtpm_cert_ecc \ - test_tpm2_swtpm_setup_create_cert --if HAVE_TCSD --TESTS += \ -- test_tpm2_samples_create_tpmca --endif - endif - - EXTRA_DIST=$(TESTS) \ diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.7.1.bb similarity index 94% rename from meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb rename to meta-tpm/recipes-tpm/swtpm/swtpm_0.7.1.bb index 63734b9..85e4c5d 100644 --- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.6.1.bb +++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.7.1.bb @@ -6,10 +6,9 @@ SECTION = "apps" # expect-native, socat-native, coreutils-native and net-tools-native are reportedly only required for the tests DEPENDS = "libtasn1 coreutils-native expect-native socat-native glib-2.0 net-tools-native libtpm json-glib" -SRCREV = "98187d24fe14851653a7c46eb16e9c5f0b9beaa1" -SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.6;protocol=https \ +SRCREV = "92a7035f45d9b08aa7c6b8bd6fa4c6916ef07a9e" +SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.7-next;protocol=https \ file://ioctl_h.patch \ - file://oe_configure.patch \ " PE = "1" From patchwork Sat Mar 5 00:30:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: akuster808 X-Patchwork-Id: 4710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22CE7C433F5 for ; Sat, 5 Mar 2022 00:30:33 +0000 (UTC) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web08.1346.1646440231853557249 for ; Fri, 04 Mar 2022 16:30:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=diL2xnMx; spf=pass (domain: gmail.com, ip: 209.85.210.173, mailfrom: akuster808@gmail.com) Received: by mail-pf1-f173.google.com with SMTP id s8so4872808pfk.12 for ; Fri, 04 Mar 2022 16:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=5RK42bNP8dPSNDgeIhISYaq4LPw2JzeH2vfwGmFobok=; b=diL2xnMxGdoxxiDz6UHPgeg7QZs1N9T3ooZCwSmMoytvPMgqXcuBP7oill8e8rYp1f vqbAGsudJrrDa181/O3yheMIysXeBEvVZ+GZQX5HShXU2GUwOGR19LmzQ1j9TKKdj4EB fzFpbAznWzXUkLu3Py267PvzYoIQB/E8tT9W8L8scXZC6eXzLZj432EnMwn/0NdD18Jf CWqAb7YBYa73Chkg3yAfOUHiKu+vlrBEXYex7ybUm8VIYfCf9taQ1YFiyJCziChuAxgW 6OeLIVk6disY1gbsJN72HR8Auk51KsT9zPADt2x5m/SXSC4qaZEbzhgnKTwMBQ+P6f5n T0Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5RK42bNP8dPSNDgeIhISYaq4LPw2JzeH2vfwGmFobok=; b=cJv0jyWBHA/WcYPyYhtX+XJLf+II3OcWxdSJEEx+fvzTtpsxYM7pRzu8fQF0MfArw1 VoLtBTG4DZU0Q9HP3LK4BexjVNJodOJckWBFYRiSDZCmU+6A/1180zoqWoe8gfP7nJON Gg84ArKRo7I96UK53CIvbcToCct4yTN1Cd5kvfdPnz8MZAm5ZgxADAYrK4CX4axkya9m s3KwulsL5ReIeMEAg2IEsH+SW9vB1nyp5ZfZ4VutHzGcwKi77yDK7CWcxYe/hYypsvCm hIXSOoIutusEeRFTqivuRByRaQJkqIfh7uoC3Rz0AC2f6dNiZRiQRp3810/yJQl/tr68 Gwsw== X-Gm-Message-State: AOAM532izOCns5aJqsg1e+c9e2uVuqXCC+X2p1XQX/A7dt5NcEUG5N4m zGuYAeqFkfw6BDSypTuz9PAApZzG63w= X-Google-Smtp-Source: ABdhPJzeC2rizSUjb9uJTb6guy92zSSAwp1OJ6E4wsNifH23V6pd2/HhPDlbQC8TGb2EPS+VjYwYvA== X-Received: by 2002:a05:6a00:ad2:b0:4f1:2734:a3d9 with SMTP id c18-20020a056a000ad200b004f12734a3d9mr1034510pfl.61.1646440231187; Fri, 04 Mar 2022 16:30:31 -0800 (PST) Received: from keaua.caveonetworks.com ([2601:202:4180:a5c0:4a57:ddb1:e4ac:8918]) by smtp.gmail.com with ESMTPSA id z23-20020a056a001d9700b004f6d2974269sm286659pfw.113.2022.03.04.16.30.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 16:30:31 -0800 (PST) From: Armin Kuster To: yocto@lists.yoctoproject.org Subject: [meta-security][PATCH 2/2] libtpm: update to 0.9.2 Date: Fri, 4 Mar 2022 16:30:29 -0800 Message-Id: <20220305003029.3893656-2-akuster808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220305003029.3893656-1-akuster808@gmail.com> References: <20220305003029.3893656-1-akuster808@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 05 Mar 2022 00:30:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/56373 includes: CVE-2021-3623 Signed-off-by: Armin Kuster --- .../recipes-tpm/libtpm/{libtpm_0.8.7.bb => libtpm_0.9.3.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-tpm/recipes-tpm/libtpm/{libtpm_0.8.7.bb => libtpm_0.9.3.bb} (84%) diff --git a/meta-tpm/recipes-tpm/libtpm/libtpm_0.8.7.bb b/meta-tpm/recipes-tpm/libtpm/libtpm_0.9.3.bb similarity index 84% rename from meta-tpm/recipes-tpm/libtpm/libtpm_0.8.7.bb rename to meta-tpm/recipes-tpm/libtpm/libtpm_0.9.3.bb index 8fe62cf..c03c44c 100644 --- a/meta-tpm/recipes-tpm/libtpm/libtpm_0.8.7.bb +++ b/meta-tpm/recipes-tpm/libtpm/libtpm_0.9.3.bb @@ -2,8 +2,8 @@ SUMMARY = "LIBPM - Software TPM Library" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=e73f0786a936da3814896df06ad225a9" -SRCREV = "f6dd8f55eab4910131ec6a6a570dcd7951bd10e4" -SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-0.8;protocol=https" +SRCREV = "3f8fbc831b7bc3a6cc8422c432f577596b4cf3df" +SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-0.9;protocol=https" PE = "1"