]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dccp: check ccid before dereferencing
authorMathias Krause <minipli@googlemail.com>
Wed, 15 Aug 2012 11:31:54 +0000 (11:31 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 10:54:48 +0000 (03:54 -0700)
commit22b63e3db65af9031654c816a13110ee548fd32e
treeced4493b028d4f2dd28ad78c72a559f3da8bdf48
parente988cfc8d7eca77b9a42cb08f924f314e3ea2dd0
dccp: check ccid before dereferencing

commit 276bdb82dedb290511467a5a4fdbe9f0b52dce6f upstream.

ccid_hc_rx_getsockopt() and ccid_hc_tx_getsockopt() might be called with
a NULL ccid pointer leading to a NULL pointer dereference. This could
lead to a privilege escalation if the attacker is able to map page 0 and
prepare it with a fake ccid_ops pointer.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dccp/ccid.h