From 24cf223e79a311a7774861456c0d5185687018f2 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 4 Aug 2025 15:19:36 -0400 Subject: [PATCH 1/3] spec: Add missing empty line to spec file Signed-off-by: Stefan Berger --- dist/libtpms.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/libtpms.spec b/dist/libtpms.spec index 0306ac56a..a92d707ed 100644 --- a/dist/libtpms.spec +++ b/dist/libtpms.spec @@ -112,6 +112,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la %postun -p /sbin/ldconfig %changelog + * Tue Jun 10 2025 Stefan Berger - 0.9.7-1 - tpm2: Fix potential out-of-bound access & abort due to HMAC signing issue (CVE-2025-49133) - tpm2: Remove assigned-to value to offset because it is unused (Coverity) From 8372f87536289d7dfba1eed60e397106c2f74df2 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 2 Jan 2026 12:04:47 -0500 Subject: [PATCH 2/3] build-sys: Build libtpms v0.9.8 Signed-off-by: Stefan Berger --- configure.ac | 2 +- dist/libtpms.spec | 2 +- include/libtpms/tpm_library.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f7cf00702..0650d56a5 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ # # See the LICENSE file for the license associated with this file. -AC_INIT([libtpms],[0.9.7]) +AC_INIT([libtpms],[0.9.8]) AC_PREREQ([2.69]) AC_CONFIG_SRCDIR(Makefile.am) AC_CONFIG_AUX_DIR([.]) diff --git a/dist/libtpms.spec b/dist/libtpms.spec index a92d707ed..5c1c497a4 100644 --- a/dist/libtpms.spec +++ b/dist/libtpms.spec @@ -1,7 +1,7 @@ # --- libtpm rpm-spec --- %define name libtpms -%define version 0.9.7 +%define version 0.9.8 %define release 1 # Valid crypto subsystems are 'freebl' and 'openssl' diff --git a/include/libtpms/tpm_library.h b/include/libtpms/tpm_library.h index ceb0033ac..6cde5f4a4 100644 --- a/include/libtpms/tpm_library.h +++ b/include/libtpms/tpm_library.h @@ -50,7 +50,7 @@ extern "C" { #define TPM_LIBRARY_VER_MAJOR 0 #define TPM_LIBRARY_VER_MINOR 9 -#define TPM_LIBRARY_VER_MICRO 7 +#define TPM_LIBRARY_VER_MICRO 8 #define TPM_LIBRARY_VERSION_GEN(MAJ, MIN, MICRO) \ (( MAJ << 16 ) | ( MIN << 8 ) | ( MICRO )) From 4e0af8f40424894bd31afe4df8653529000365e3 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Fri, 2 Jan 2026 11:37:31 -0500 Subject: [PATCH 3/3] Fix a compilation error in TPMLIB_GetPlaintext Fix a compilation error that newer gcc versions may complain about: tpm_library.c: In function 'TPMLIB_GetPlaintext': tpm_library.c:441:11: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 441 | start = strstr(stream, starttag); | ^ At top level: cc1: note: unrecognized command-line option '-Wno-self-assign' may have been intended to silence earlier diagnostics cc1: all warnings being treated as errors Signed-off-by: Stefan Berger --- src/tpm_library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpm_library.c b/src/tpm_library.c index 20153b7b4..9000c5d5d 100644 --- a/src/tpm_library.c +++ b/src/tpm_library.c @@ -424,7 +424,7 @@ static unsigned char *TPMLIB_GetPlaintext(const char *stream, const char *endtag, size_t *length) { - char *start, *end; + const char *start, *end; unsigned char *plaintext = NULL; start = strstr(stream, starttag);