libtpms/src
Stefan Berger 9f9baccdba tpm2: Fix potential out-of-bound access & abort due to HMAC signing issue
Fix an HMAC signing issue that may causes an out-of-bounds access in a
TPM2B that in turn was running into an assert() in libtpms causing an
abort. The signing issue was due to an inconsistent pairing of the signKey
and signScheme parameters, where the signKey is ALG_KEYEDHASH key and
inScheme is an ECC or RSA scheme.

This fixes CVE-2025-49133.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2025-06-10 11:32:28 -04:00
..
tpm2 tpm2: Fix potential out-of-bound access & abort due to HMAC signing issue 2025-06-10 11:32:28 -04:00
tpm12 tpm12: Replace include of engine.h with err.h 2024-07-08 17:05:15 -04:00
compiler.h library: use __attribute__((format,...) to check printf format and args 2018-06-15 18:07:49 -04:00
disabled_interface.c build-sys: add optional --with-tpm1 2021-08-06 08:04:37 -04:00
libtpms.syms Integrate the TPM 2 into the library; do not compile with TPM 2 yet 2018-06-15 18:07:47 -04:00
Makefile.am build-sys: Use -DOPENSSL_SUPPRESS_DEPRECATED to suppress warning (OSSL 3) 2021-09-21 16:52:22 -04:00
test.syms build-sys: work around broken linker when testing --version-script support 2018-08-30 21:45:16 +00:00
tpm_debug.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_debug.h tpm: #undef printf in case it is #define'd (OSS-Fuzz) 2022-04-21 09:50:50 -04:00
tpm_library_conf.h Fix many misspellings 2021-03-02 08:20:25 -05:00
tpm_library_intern.h build-sys: add optional --with-tpm1 2021-08-06 08:04:37 -04:00
tpm_library.c Insert assert ensuring *buflen != BUFLEN_EMPTY_BUFFER (Coverity) 2024-10-15 11:56:40 -04:00
tpm_memory.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_nvfile.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_nvfile.h Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_tpm2_interface.c tpm2: Report supported Camellia keysizes in the JSON 2021-09-06 13:42:06 -04:00
tpm_tpm2_tis.c tpm2: rev155: Major refactoring of header files 2020-04-14 16:03:45 -04:00
tpm_tpm12_interface.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00
tpm_tpm12_tis.c Move common debug, memory & nvfile units to src/ 2021-08-06 08:04:37 -04:00