Home
last modified time | relevance | path

Searched hist:"6 e601a53566d84e1ffd25e7b6fe0b6894ffd79c0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dsock_diag.cdiff 6e601a53566d84e1ffd25e7b6fe0b6894ffd79c0 Fri Feb 22 19:13:47 CST 2013 Mathias Krause <minipli@googlemail.com> sock_diag: Fix out-of-bounds access to sock_diag_handlers[]

Userland can send a netlink message requesting SOCK_DIAG_BY_FAMILY
with a family greater or equal then AF_MAX -- the array size of
sock_diag_handlers[]. The current code does not test for this
condition therefore is vulnerable to an out-of-bound access opening
doors for a privilege escalation.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>