af_key: fix info leaks in notify messages
authorMathias Krause <minipli@googlemail.com>
Wed, 26 Jun 2013 21:52:30 +0000 (23:52 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 2 Aug 2013 20:14:45 +0000 (22:14 +0200)
commit31bd7d1943f42c22850bb3bc6a7dd89fc4cf9b08
treed92a363e1765d0c2f31e9f87361ca98c07bc5387
parenta7cdf6bc2abd64f94622fe12a1a212a07a316a83
af_key: fix info leaks in notify messages

[ Upstream commit a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887 ]

key_notify_sa_flush() and key_notify_policy_flush() miss to initialize
the sadb_msg_reserved member of the broadcasted message and thereby
leak 2 bytes of heap memory to listeners. Fix that.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/key/af_key.c