Descrizione

In the Linux kernel, the following vulnerability has been resolved: net/rds: use wq_has_sleeper() in release_in_xmit() release_in_xmit() clears RDS_IN_XMIT with clear_bit_unlock() and then checks waitqueue_active() to decide whether anyone needs waking. clear_bit_unlock() is only a release operation: it orders the critical section before the bit clear, but does not order the subsequent plain load of the wait queue head after it. The waiter side does the mirror image - it adds itself to the wait queue and then tests the bit. That is the classic store-buffering pattern: the releasing CPU can read the wait queue as empty while the waiting CPU still reads the bit as set, so the sleeper is never woken. The waiters are rds_conn_shutdown() and rds_tcp_reset_callbacks(), both in uninterruptible wait_event() with no timeout. A lost wake-up strands the shutdown worker on its single-threaded workqueue until some other sender releases the bit again - and on a connection that is being torn down precisely because it failed, there may never be another sender. The barrier used to be there: release_in_xmit() did clear_bit() followed by smp_mb__after_atomic() until commit 1422f28826d2 ("rds: introduce acquire/release ordering in acquire/release_in_xmit()") folded both into clear_bit_unlock(), which strengthened the lock hand-off but silently dropped the full barrier the wake-up check depends on. The refill counterpart, release_refill() in net/rds/ib_recv.c, still carries its smp_mb__after_atomic() for exactly this reason. Use wq_has_sleeper(), which is waitqueue_active() preceded by the required full barrier.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.

Versioni da aggiornare

  • Linux Linux Kernel: vulnerabili le versioni dalla 4.19.311 precedenti alla 4.20 → aggiornare alla 4.20 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.4.273 precedenti alla 5.5 → aggiornare alla 5.5 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.10.214 precedenti alla 5.10.271 → aggiornare alla 5.10.271 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 5.15.153 precedenti alla 5.15.222 → aggiornare alla 5.15.222 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.1.83 precedenti alla 6.1.189 → aggiornare alla 6.1.189 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.6.23 precedenti alla 6.6.158 → aggiornare alla 6.6.158 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.7.11 precedenti alla 6.8 → aggiornare alla 6.8 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.8.2 precedenti alla 6.12.111 → aggiornare alla 6.12.111 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.13 precedenti alla 6.18.53 → aggiornare alla 6.18.53 o successiva.
  • Linux Linux Kernel: vulnerabili le versioni dalla 6.19 precedenti alla 7.2.7 → aggiornare alla 7.2.7 o successiva.
  • Linux Linux Kernel: vulnerabile la versione 7.3 rc1 → installare l'ultima release supportata dal vendor.

Patch e advisory

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
Linux Linux Kernel ≥ 4.19.311 < 4.20 4.20
Linux Linux Kernel ≥ 5.4.273 < 5.5 5.5
Linux Linux Kernel ≥ 5.10.214 < 5.10.271 5.10.271
Linux Linux Kernel ≥ 5.15.153 < 5.15.222 5.15.222
Linux Linux Kernel ≥ 6.1.83 < 6.1.189 6.1.189
Linux Linux Kernel ≥ 6.6.23 < 6.6.158 6.6.158
Linux Linux Kernel ≥ 6.7.11 < 6.8 6.8
Linux Linux Kernel ≥ 6.8.2 < 6.12.111 6.12.111
Linux Linux Kernel ≥ 6.13 < 6.18.53 6.18.53
Linux Linux Kernel ≥ 6.19 < 7.2.7 7.2.7
Linux Linux Kernel 7.3 rc1 —

Riferimenti