Descrizione
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: fix chan mode for LE_CONN_REQ + EXT_FLOWCTL pchan l2cap_new_connection() sets default value of channel mode to match the parent channel. l2cap_le_connect_req() left this at the default, and created L2CAP_MODE_EXT_FLOWCTL channels if listening pchan has that mode. This causes FLAG_DEFER_SETUP channels to reply to L2CAP_LE_CONN_REQ with L2CAP_ECRED_CONN_RSP, which is incorrect. It can also result to stack OOB write (of l2cap_alloc_cid determined values) in l2cap_ecred_rsp_defer(), as l2cap_le_connect_req() does not limit maximum number of deferred channels or check for duplicate ident. Fix by setting chan->mode correctly in l2cap_le_connect_req(). Also check channel mode in l2cap_ecred_rsp_defer(), and do WARN_ON_ONCE instead of OOB write to make it less brittle.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.7precedenti alla5.10.271→ aggiornare alla5.10.271o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.222→ aggiornare alla5.15.222o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.189→ aggiornare alla6.1.189o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.158→ aggiornare alla6.6.158o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.111→ aggiornare alla6.12.111o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.53→ aggiornare alla6.18.53o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.2.7→ aggiornare alla7.2.7o successiva. - Linux Linux Kernel: vulnerabile la versione
7.3 rc1→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/0e1fc7cab95ad958e55d70a5dfa…
- Patch: git.kernel.org/stable/c/1074bcc57f741223f9fa82ce6af…
- Patch: git.kernel.org/stable/c/4ef05db5b08b176a551b4a62873…
- Patch: git.kernel.org/stable/c/564ae0e05e598aa895b9dbd18cb…
- Patch: git.kernel.org/stable/c/5d5a625cbc854d4c4f68e4b16fc…
- Patch: git.kernel.org/stable/c/6cb79e6499228cfdbd4b3301371…
- Patch: git.kernel.org/stable/c/aab17938998b29e75c332476341…
- Patch: git.kernel.org/stable/c/ad0f44a3f1f688558ed876a0702…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
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 Kernel | ≥ 5.7 < 5.10.271 | 5.10.271 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.222 | 5.15.222 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.189 | 6.1.189 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.158 | 6.6.158 |
| Linux | Linux Kernel | ≥ 6.7 < 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
- Patchhttps://git.kernel.org/stable/c/0e1fc7cab95ad958e55d70a5dfaaea687c9c639f
- Patchhttps://git.kernel.org/stable/c/1074bcc57f741223f9fa82ce6afe5c3d783e4d10
- Patchhttps://git.kernel.org/stable/c/4ef05db5b08b176a551b4a6287372045998806b0
- Patchhttps://git.kernel.org/stable/c/564ae0e05e598aa895b9dbd18cb7d6eb64752869
- Patchhttps://git.kernel.org/stable/c/5d5a625cbc854d4c4f68e4b16fcf6e682d9a9ed1
- Patchhttps://git.kernel.org/stable/c/6cb79e6499228cfdbd4b3301371ce74d01cd2f80
- Patchhttps://git.kernel.org/stable/c/aab17938998b29e75c3324763411aef3e300fc67
- Patchhttps://git.kernel.org/stable/c/ad0f44a3f1f688558ed876a0702bc2c82b0df689