]> git.karo-electronics.de Git - linux-beck.git/commit
af_key: fix info leaks in notify messages
authorMathias Krause <minipli@googlemail.com>
Wed, 26 Jun 2013 21:52:30 +0000 (23:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2013 22:15:54 +0000 (15:15 -0700)
commita5cc68f3d63306d0d288f31edfc2ae6ef8ecd887
treea126282a827b2ff1b25c3213a4a38aecc08d84fd
parenta963a37d384d71ad43b3e9e79d68d42fbe0901f3
af_key: fix info leaks in notify messages

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>
net/key/af_key.c