CVE-2026-23047
JSON

Not scored

libceph: make calc_target() set t->paused, not just clear it

Severity
Not scored
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: libceph: make calc_target() set t->paused, not just clear it Currently calc_target() clears t->paused if the request shouldn't be paused anymore, but doesn't ever set t->paused even though it's able to determine when the request should be paused. Setting t->paused is left to __submit_request() which is fine for regular requests but doesn't work for linger requests -- since __submit_request() doesn't operate on linger requests, there is nowhere for lreq->t.paused to be set. One consequence of this is that watches don't get reestablished on paused -> unpaused transitions in cases where requests have been paused long enough for the (paused) unwatch request to time out and for the subsequent (re)watch request to enter the paused state. On top of the watch not getting reestablished, rbd_reregister_watch() gets stuck with rbd_dev->watch_mutex held: rbd_register_watch __rbd_register_watch ceph_osdc_watch linger_reg_commit_wait It's waiting for lreq->reg_commit_wait to be completed, but for that to happen the respective request needs to end up on need_resend_linger list and be kicked when requests are unpaused. There is no chance for that if the request in question is never marked paused in the first place. The fact that rbd_dev->watch_mutex remains taken out forever then prevents the image from getting unmapped -- "rbd unmap" would inevitably hang in D state on an attempt to grab the mutex.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 922dab6134178cae317ae00de86376cba59f3147 before 2b3329b3c29d9e188e40d902d5230c2d5989b940, from 922dab6134178cae317ae00de86376cba59f3147 before 5d0dc83cb9a69c1d0bea58f1c430199b05f6b021, from 922dab6134178cae317ae00de86376cba59f3147 before 4d3399c52e0e61720ae898f5a0b5b75d4460ae24, from 922dab6134178cae317ae00de86376cba59f3147 before 4ebc711b738d139cabe2fc9e7e7749847676a342, from 922dab6134178cae317ae00de86376cba59f3147 before 6f468f6ff233c6a81e0e761d9124e982903fe9a5, from 922dab6134178cae317ae00de86376cba59f3147 before 5647d42c47b535573b63e073e91164d6a5bb058c, from 922dab6134178cae317ae00de86376cba59f3147 before c0fe2994f9a9d0a2ec9e42441ea5ba74b6a16176, 4.7
Not affected: before 4.7, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.161 up to 6.1.*, from 6.6.121 up to 6.6.*, from 6.12.66 up to 6.12.*
CVE List

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: libceph: make calc_target() set t->paused, not just clear it Currently calc_target() clears t->paused if the request shouldn't be paused anymore, but doesn't ever set t->paused even though it's able to determine when the request should be paused. Setting t->paused is left to __submit_request() which is fine for regular requests but doesn't work for linger requests -- since __submit_request() doesn't operate on linger requests, there is nowhere for lreq->t.paused to be set. One consequence of this is that watches don't get reestablished on paused -> unpaused transitions in cases where requests have been paused long enough for the (paused) unwatch request to time out and for the subsequent (re)watch request to enter the paused state. On top of the watch not getting reestablished, rbd_reregister_watch() gets stuck with rbd_dev->watch_mutex held: rbd_register_watch __rbd_register_watch ceph_osdc_watch linger_reg_commit_wait It's waiting for lreq->reg_commit_wait to be completed, but for that to happen the respective request needs to end up on need_resend_linger list and be kicked when requests are unpaused. There is no chance for that if the request in question is never marked paused in the first place. The fact that rbd_dev->watch_mutex remains taken out forever then prevents the image from getting unmapped -- "rbd unmap" would inevitably hang in D state on an attempt to grab the mutex.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: libceph: hacer que calc_target() establezca t->paused, no solo lo borre Actualmente, calc_target() borra t->paused si la solicitud ya no debería estar en pausa, pero nunca establece t->paused a pesar de que es capaz de determinar cuándo la solicitud debería estar en pausa. El establecimiento de t->paused se deja a __submit_request(), lo cual está bien para las solicitudes regulares pero no funciona para las solicitudes persistentes (linger requests) -- ya que __submit_request() no opera en solicitudes persistentes, no hay dónde establecer lreq->t.paused. Una consecuencia de esto es que las vigilancias no se restablecen en las transiciones de pausado -> despausado en casos donde las solicitudes han estado en pausa el tiempo suficiente para que la solicitud de desvigilancia (unwatch) (pausada) expire y para que la solicitud de (re)vigilancia (re)watch subsiguiente entre en el estado de pausa. Además de que la vigilancia no se restablece, rbd_reregister_watch() se queda atascado con rbd_dev->watch_mutex retenido: rbd_register_watch __rbd_register_watch ceph_osdc_watch linger_reg_commit_wait Está esperando que lreq->reg_commit_wait se complete, pero para que eso suceda la solicitud respectiva necesita terminar en la lista need_resend_linger y ser activada cuando las solicitudes se despausan. No hay posibilidad de eso si la solicitud en cuestión nunca se marca como pausada en primer lugar. El hecho de que rbd_dev->watch_mutex permanezca retenido indefinidamente entonces evita que la imagen se desmapee -- 'rbd unmap' se colgaría inevitablemente en estado D en un intento de tomar el mutex.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23047 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-23047 changed 2026-06-17Public domain