libceph: return the handler error from mon_handle_auth_done()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cd1a677cad994021b19665ed476aea63f5d54f31 · < e84b48d31b5008932c0a0902982809fbaa1d3b70| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
libceph: return the handler error from mon_handle_auth_done()
Currently any error from ceph_auth_handle_reply_done() is propagated via finish_auth() but isn't returned from mon_handle_auth_done(). This results in higher layers learning that (despite the monitor considering us to be successfully authenticated) something went wrong in the authentication phase and reacting accordingly, but msgr2 still trying to proceed with establishing the session in the background. In the case of secure mode this can trigger a WARN in setup_crypto() and later lead to a NULL pointer dereference inside of prepare_auth_signature().
From the CVE record · Linux
The Linux kernel's libceph component can continue establishing a session after an authentication-phase error because mon_handle_auth_done() does not return the handler error. In secure mode, this can trigger a warning and later a NULL pointer dereference; the input does not establish whether an attacker can trigger it or whether authentication or user interaction is required.
Teams running Linux kernels with libceph should check whether their kernel is affected; affected versions were not provided.