tpm2: Check size of buffer before accessing it (CVE-2023-1017, CVE-2023-1018)

Closes: #1032420

Merge request reports

Loading