]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: algif_hash - Only export and import on sockets with data
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 1 Nov 2015 09:11:19 +0000 (17:11 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 23 Jan 2017 20:21:27 +0000 (12:21 -0800)
commitf6b2ab2e91c57d40fa35ee96c4617ef2a4e22eed
tree0d52fff5b8532583f15fc71d6f482bb2ee6b2402
parent7c906218b7d4cdb5eac724d20bbe80e489f21a18
crypto: algif_hash - Only export and import on sockets with data

Orabug: 25097996
CVE: CVE-2016-8646

The hash_accept call fails to work on sockets that have not received
any data.  For some algorithm implementations it may cause crashes.

This patch fixes this by ensuring that we only export and import on
sockets that have received data.

Cc: stable@vger.kernel.org
Reported-by: Harsh Jain <harshjain.prof@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Stephan Mueller <smueller@chronox.de>
(cherry picked from commit 4afa5f9617927453ac04b24b584f6c718dfb4f45)
Signed-off-by: Aniket Alshi <aniket.alshi@oracle.com>
crypto/algif_hash.c