]> git.itanic.dy.fi Git - linux-stable/commit
net: fix infoleak in rtnetlink
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:46:24 +0000 (16:46 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:24 +0000 (23:07 -0400)
commit9a9390bcf56680c487a8e4c89c813a48bfedc4b6
tree4aeef40aaa8004b9d036ce71d80f3fa9ae84df55
parent5923f46563d1ce74c1f1178cba5a67735bb83e6d
net: fix infoleak in rtnetlink

[ Upstream commit 5f8e44741f9f216e33736ea4ec65ca9ac03036e6 ]

The stack object “map” has a total size of 32 bytes. Its last 4
bytes are padding generated by compiler. These padding bytes are
not initialized and sent out via “nla_put”.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/core/rtnetlink.c