Descrizione

In the Linux kernel, the following vulnerability has been resolved: nvme-tcp: Validate the queue state under the queue lock in the address attribute Reading the "address" sysfs attribute calls kernel_getsockname() on the admin queue socket, which can race with the queue teardown during connection error recovery: a reader can observe NVME_TCP_Q_LIVE set, then block on the queue lock while nvme_tcp_free_queue() releases the socket and clears queue->sock without holding the lock. Once the reader acquires the lock it dereferences the NULL socket pointer. Commit 76d54bf20cdc ("nvme-tcp: don't access released socket during error recovery") had the queue liveness check inside the lock. Commit 782373ba2766 ("nvme: tcp: avoid race between queue_lock lock and destroy") moved it back out because the lock itself is destroyed in nvme_tcp_free_queue(), so a reader arriving late trips mutex_destroy(). Check the queue liveness inside the queue lock, and clear queue->sock under the same lock. The teardown clears NVME_TCP_Q_LIVE under the lock well before the socket is released, so a reader either sees the bit cleared or a socket that cannot be released while it holds the lock. To also close the lock lifetime race, the queue locks are now owned by the controller: they are initialized with the queue array and only destroyed when the controller is freed, which cannot happen while a sysfs attribute read is still in progress. The queue count is computed by the NVME_TCP_OPT_NR_QUEUES() macro from the original connect options for both initialization and destruction, as reconnects may shrink ctrl->queue_count.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: EPSS 0.2% (percentile 5).

Versioni da aggiornare

  • Linux Linux: vulnerabili le versioni dalla 6.1.118 precedenti alla 6.2 → aggiornare alla 6.2 o successiva.
  • Linux Linux: vulnerabili le versioni dalla 6.6.62 precedenti alla 6.7 → aggiornare alla 6.7 o successiva.
  • Linux Linux: vulnerabili le versioni dalla 6.11.9 precedenti alla 6.12 → aggiornare alla 6.12 o successiva.
  • Linux Linux: versione corretta 7.3.5 (o successiva).
  • Linux Linux: versione corretta 7.4-rc1 (o successiva).
  • Linux Linux: vulnerabile la versione 6.12 → installare l'ultima release supportata dal vendor.

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 ≥ 6.1.118 < 6.2 6.2
Linux Linux ≥ 6.6.62 < 6.7 6.7
Linux Linux ≥ 6.11.9 < 6.12 6.12
Linux Linux — 7.3.5
Linux Linux — 7.4-rc1
Linux Linux 6.12 —

Riferimenti