Descrizione
In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix update of call->tx_pending without holding lock Currently, rxrpc_send_data() updates call->tx_pending just before it returns - but it won't be holding the call->user_mutex when it does this if a wait was interrupted by a signal. This would allow a parallel sendmsg() to race. Further, both the callers of rxrpc_send_data() call it with the lock held, and then it returns an indication through the parameter list to say whether it has dropped the lock or not - after which the callers both just drop the lock if it's still held. Fix this by: (1) Moving the release of call->user_mutex down into rxrpc_send_data() and get rid of the indicator parameter. This makes it easier to see where the lock is held. (2) After waiting, if the attempt to reacquire the mutex is interrupted, just return directly there rather than going to out_unlock (3) Restricting the txb variable to inside the buffering loop and leaving ->tx_pending set until we've queued the buffer. Note that there's a slight change in behaviour in that wait_for_space failure now doesn't check for completion because it doesn't hold the call user_mutex. The caller, however, should re-issue the send and pick up any error at a second attempt.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: EPSS 0.2% (percentile 10).
Versioni da aggiornare
- Linux Linux: vulnerabili le versioni dalla
5.10.140precedenti alla5.11→ aggiornare alla5.11o successiva. - Linux Linux: vulnerabili le versioni dalla
5.15.64precedenti alla5.16→ aggiornare alla5.16o successiva. - Linux Linux: vulnerabili le versioni dalla
5.19.6precedenti alla5.20→ aggiornare alla5.20o successiva. - Linux Linux: versione corretta
6.12.118(o successiva). - Linux Linux: versione corretta
6.18.61(o successiva). - Linux Linux: versione corretta
7.3.2(o successiva). - Linux Linux: versione corretta
7.4-rc1(o successiva). - Linux Linux: vulnerabile la versione
6.0→ 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
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux | ≥ 5.10.140 < 5.11 | 5.11 |
| Linux | Linux | ≥ 5.15.64 < 5.16 | 5.16 |
| Linux | Linux | ≥ 5.19.6 < 5.20 | 5.20 |
| Linux | Linux | — | 6.12.118 |
| Linux | Linux | — | 6.18.61 |
| Linux | Linux | — | 7.3.2 |
| Linux | Linux | — | 7.4-rc1 |
| Linux | Linux | 6.0 | — |
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/35f7a69391ca0819d04ca6db3c2355848d633e16
- Riferimentohttps://git.kernel.org/stable/c/7801c42c3bb737cfb06194a383873fcad8daacf5
- Riferimentohttps://git.kernel.org/stable/c/965456110cf6952cc4eec80761171503e6e424df
- Riferimentohttps://git.kernel.org/stable/c/ec98e8bdbde85e2dd2d43570e25b52bdfac1735b