F-11929 - Zeroize the append-only NV replay buffer before freeing

pull/604/head
Aidan Garske 2026-09-10 11:25:53 -07:00
parent ae3581982e
commit b12c95e64a
1 changed files with 1 additions and 0 deletions

View File

@ -1759,6 +1759,7 @@ static int FwNvInitAppendOnly(FWTPM_CTX* ctx, byte** valueBufP,
rc = TPM_RC_MEMORY;
break;
}
TPM2_ForceZero(valueBuf, valueBufSz);
XFREE(valueBuf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
valueBuf = newBuf;
valueBufSz = len;