[packages/libtpms] Up to 0.10.2

arekm arekm at pld-linux.org
Thu Nov 26 08:27:21 CET 2026


commit f93315128d5718f7ed4c03678fec2a429948be74
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 26 07:14:35 2026 +0100

    Up to 0.10.2
    
    Fixes CVE-2026-21444, CVE-2025-49133.

 libtpms-const.patch | 12 ++++++++++++
 libtpms-x32.patch   |  6 +++---
 libtpms.spec        |  6 ++++--
 3 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/libtpms.spec b/libtpms.spec
index cc1109e..df76abf 100644
--- a/libtpms.spec
+++ b/libtpms.spec
@@ -5,14 +5,15 @@
 Summary:	Library providing Trusted Platform Module (TPM) functionality
 Summary(pl.UTF-8):	Biblioteka zapewniająca funkcjonalność modułu TPM (Trusted Platform Module)
 Name:		libtpms
-Version:	0.9.6
+Version:	0.10.2
 Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/stefanberger/libtpms/tags
 Source0:	https://github.com/stefanberger/libtpms/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	c922a80cb1a098e6f9b2671c0044a388
+# Source0-md5:	3c9a244d72738578166c7ed91141fab1
 Patch0:		%{name}-x32.patch
+Patch1:		%{name}-const.patch
 URL:		https://github.com/stefanberger/libtpms
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake >= 1.6
@@ -57,6 +58,7 @@ Statyczna biblioteka libtpms.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__libtoolize}
diff --git a/libtpms-const.patch b/libtpms-const.patch
new file mode 100644
index 0000000..2c7097c
--- /dev/null
+++ b/libtpms-const.patch
@@ -0,0 +1,12 @@
+# strstr() returns const char * for const input with glibc 2.43; -Werror=discarded-qualifiers
+--- libtpms-0.10.2.orig/src/tpm_library.c	2026-11-26 07:12:46.647228882 +0100
++++ libtpms-0.10.2/src/tpm_library.c	2026-11-26 07:13:20.114099349 +0100
+@@ -435,7 +435,7 @@
+                                           const char *endtag,
+                                           size_t *length)
+ {
+-    char *start, *end;
++    const char *start, *end;
+     unsigned char *plaintext = NULL;
+ 
+     start = strstr(stream, starttag);
diff --git a/libtpms-x32.patch b/libtpms-x32.patch
index 81328ef..c54e1c3 100644
--- a/libtpms-x32.patch
+++ b/libtpms-x32.patch
@@ -1,6 +1,6 @@
---- libtpms-0.9.2/src/tpm2/TpmProfile.h.orig	2022-01-05 21:59:06.000000000 +0100
-+++ libtpms-0.9.2/src/tpm2/TpmProfile.h	2022-02-21 21:56:29.918521366 +0100
-@@ -177,6 +177,9 @@
+--- libtpms-0.10.2.orig/src/tpm2/crypto/openssl/tpm_radix.h	2026-11-26 07:12:46.673704578 +0100
++++ libtpms-0.10.2/src/tpm2/crypto/openssl/tpm_radix.h	2026-11-26 07:12:46.805592027 +0100
+@@ -67,6 +67,9 @@
  # ifdef THIRTY_TWO_BIT
  #  define RADIX_BITS                     32
  # endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtpms.git/commitdiff/f93315128d5718f7ed4c03678fec2a429948be74



More information about the pld-cvs-commit mailing list