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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jul 2013 18:03:40 +0000 (11:03 -0700)
commita0d7384148e8e828f71f46ab10698daca41e64d8
tree5c2f0442e10b7be68eae8f58ec0f05f8da3aa331
parentad7d5b07040bb8073bf14a661e60e94b87377df9
libceph: Fix NULL pointer dereference in auth client code

commit 2cb33cac622afde897aa02d3dcd9fbba8bae839e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/auth_none.c