]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PKT_SCHED: Fix illegal memory dereferences when dumping actions
authorThomas Graf <tgraf@suug.ch>
Thu, 6 Jul 2006 03:58:02 +0000 (20:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Jul 2006 03:35:21 +0000 (20:35 -0700)
commit5bf5d453cd5479783020d2cd76138812de947106
treeaac75c546c838ad1e60e2b4e1dff690f5b083759
parentd7f69eaa106a0b46474e116216a81f72ff28e507
PKT_SCHED: Fix illegal memory dereferences when dumping actions

The TCA_ACT_KIND attribute is used without checking its
availability when dumping actions therefore leading to a
value of 0x4 being dereferenced.

The use of strcmp() in tc_lookup_action_n() isn't safe
when fed with string from an attribute without enforcing
proper NUL termination.

Both bugs can be triggered with malformed netlink message
and don't require any privileges.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/act_api.c