Descrizione
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp() l2cap_ecred_reconf_rsp() casts the incoming data to struct l2cap_ecred_conn_rsp (the ECRED *connection* response, 8 bytes with result at offset 6) instead of struct l2cap_ecred_reconf_rsp (2 bytes with result at offset 0). This causes two problems: - The sizeof(*rsp) length check requires 8 bytes instead of the correct 2, so valid L2CAP_ECRED_RECONF_RSP packets are rejected with -EPROTO. - rsp->result reads from offset 6 instead of offset 0, returning wrong data when the packet is large enough to pass the check. Fix by using the correct type. Also pass the already byte-swapped result variable to BT_DBG instead of the raw __le16 field.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.7precedenti alla5.10.253→ aggiornare alla5.10.253o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.203→ aggiornare alla5.15.203o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.167→ aggiornare alla6.1.167o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.130→ aggiornare alla6.6.130o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.78→ aggiornare alla6.12.78o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.20→ aggiornare alla6.18.20o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.10→ aggiornare alla6.19.10o successiva. - Linux Linux Kernel: vulnerabile la versione
7.0 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc3→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc4→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/111f74547eee8cfedfb854284e8…
- Patch: git.kernel.org/stable/c/15145675690cab2de1056e7ed68…
- Patch: git.kernel.org/stable/c/21d3ba696918d6373233aac0b9d…
- Patch: git.kernel.org/stable/c/3b94e62caa1dc1198d0d55d97bd…
- Patch: git.kernel.org/stable/c/5a1ea296f8589ce8f1e3141b2b1…
- Patch: git.kernel.org/stable/c/d90150c72d2e6a8a3079e88755d…
- Patch: git.kernel.org/stable/c/dd3b221e21079ade8263fbb7176…
- Patch: git.kernel.org/stable/c/f110b8f58b254bf997cec1bd607…
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.253 | 5.10.253 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.203 | 5.15.203 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.167 | 6.1.167 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.130 | 6.6.130 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.78 | 6.12.78 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.20 | 6.18.20 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.10 | 6.19.10 |
| Linux | Linux Kernel | 7.0 rc1 | — |
| Linux | Linux Kernel | 7.0 rc2 | — |
| Linux | Linux Kernel | 7.0 rc3 | — |
| Linux | Linux Kernel | 7.0 rc4 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/111f74547eee8cfedfb854284e80f35c8a491186
- Patchhttps://git.kernel.org/stable/c/15145675690cab2de1056e7ed68e59cbd0452529
- Patchhttps://git.kernel.org/stable/c/21d3ba696918d6373233aac0b9d51fcabdedddc0
- Patchhttps://git.kernel.org/stable/c/3b94e62caa1dc1198d0d55d97bd710da1dee15d7
- Patchhttps://git.kernel.org/stable/c/5a1ea296f8589ce8f1e3141b2b123b34ad010e19
- Patchhttps://git.kernel.org/stable/c/d90150c72d2e6a8a3079e88755dafcfbe91c746d
- Patchhttps://git.kernel.org/stable/c/dd3b221e21079ade8263fbb7176f3d55ad75d3b6
- Patchhttps://git.kernel.org/stable/c/f110b8f58b254bf997cec1bd60701b7798e9bb82