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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:10:44 +0000 (16:10 -0500)
commit859ca6fe36694a71a32952aacc29be742e04a3e0
treed7e5d1d95c46c947c4ddd8761368768283b4e506
parenta11a914060471392c91a7f92fc334df220abdf64
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>
[PG: in v2.6.34, file is fs/ceph and not net/ceph]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ceph/auth_none.c