]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix potential null pointer dereferences in some compat functions
authorBaozeng Ding <sploving1@gmail.com>
Tue, 24 May 2016 14:33:24 +0000 (22:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2016 19:33:52 +0000 (12:33 -0700)
commit1a52ad1edc67ed733cb4fedc89dbb54caf1fd0a0
treeb9b9d7fe44437f7a2df0330142dc50d60aa17c0a
parent63eae015cb2d33d43ba40c5859b1671c73aad83d
tipc: fix potential null pointer dereferences in some compat functions

Before calling the nla_parse_nested function, make sure the pointer to the
attribute is not null. This patch fixes several potential null pointer
dereference vulnerabilities in the tipc netlink functions.

Signed-off-by: Baozeng Ding <sploving1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c