crypto: ccp - Prevent information leakage on export

commit f709b45ec4 upstream.

Prevent information from leaking to userspace by doing a memset to 0 of
the export state structure before setting the structure values and copying
it. This prevents un-initialized padding areas from being copied into the
export area.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Tom Lendacky 2016-04-13 10:52:25 -05:00 • committed by Ben Hutchings
commit d8b40ad2f4
2 changed files with 6 additions and 0 deletions