]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
af_key: fix info leaks in notify messages
authorMathias Krause <minipli@googlemail.com>
Wed, 26 Jun 2013 21:52:30 +0000 (21:52 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:53:25 +0000 (07:53 +0200)
commitacd3e86d5d5f1d3635e4a11b1d4da2e7f5c75048
tree93bac80eb0206bfa5240687096226f0f11905636
parent42b682e8e122f4509823e97b5d9936a684225a2c
af_key: fix info leaks in notify messages

commit a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887 upstream

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: Willy Tarreau <w@1wt.eu>
net/key/af_key.c