]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dccp: check ccid before dereferencing
authorMathias Krause <minipli@googlemail.com>
Wed, 15 Aug 2012 11:31:54 +0000 (11:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 17:00:51 +0000 (10:00 -0700)
commita629a20ed248b9680cb0b2b05a751452067beeae
treee992dc0c557f632fdf8498c2d7fe13c9fb77a964
parent2b6007fbac1484f788ffffd545d916c10d1fe2e2
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