Skip to content

Commit 881772c

Browse files
committed
F-2971 - https://fenrir.wolfssl.com/finding/2971 - Add ForceZero on session auth in wolfTPM2_UnloadHandles before return
1 parent 40dddb0 commit 881772c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tpm2_wrap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7036,6 +7036,7 @@ int wolfTPM2_UnloadHandles(WOLFTPM2_DEV* dev, word32 handleStart,
70367036
/* ignore return code failures */
70377037
(void)wolfTPM2_UnloadHandle(dev, &handle);
70387038
}
7039+
TPM2_ForceZero(&handle, sizeof(handle));
70397040
return rc;
70407041
}
70417042

0 commit comments

Comments
 (0)