libceph: Fix NULL pointer dereference in auth client code
authorTyler Hicks <tyhicks@canonical.com>
Thu, 20 Jun 2013 20:13:59 +0000 (13:13 -0700)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:32:55 +0000 (15:32 -0700)
commit2cb33cac622afde897aa02d3dcd9fbba8bae839e
treeaac21aabd15adbffd377d62c677afaba2fb9296e
parent93faca6ef45822b0825bb181859b1a8911e9c4c1
libceph: Fix NULL pointer dereference in auth client code

A malicious monitor can craft an auth reply message that could cause a
NULL function pointer dereference in the client's kernel.

To prevent this, the auth_none protocol handler needs an empty
ceph_auth_client_ops->build_request() function.

CVE-2013-1059

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Reported-by: Chanam Park <chanam.park@hkpco.kr>
Reviewed-by: Seth Arnold <seth.arnold@canonical.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Cc: stable@vger.kernel.org
net/ceph/auth_none.c