Descrizione
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: bpa10x: avoid OOB read of revision string in bpa10x_setup() bpa10x_setup() sends the vendor command 0xfc0e and passes the response to bt_dev_info() and hci_set_fw_info() as a "%s" string starting at skb->data + 1, without checking the length: bt_dev_info(hdev, "%s", (char *)(skb->data + 1)); hci_set_fw_info(hdev, "%s", skb->data + 1); A device that returns a one-byte response (status only) leaves skb->data + 1 past the end of the data, and the %s walk reads adjacent slab memory until it meets a NUL. The same happens when the payload is not NUL-terminated within skb->len. The out-of-bounds bytes end up in the kernel log and the firmware-info debugfs file. Print the revision string with a bounded "%.*s" limited to skb->len - 1 instead. This keeps the string readable for well-behaved devices while never reading past the received data, and does not fail setup, so a device returning a short or unterminated response keeps working.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.4precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.97→ aggiornare alla6.12.97o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.40→ aggiornare alla6.18.40o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.5→ aggiornare alla7.1.5o successiva. - Linux Linux Kernel: vulnerabile la versione
7.2 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.2 rc2→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/1813add71e386f77b3040e6c8dc…
- Patch: git.kernel.org/stable/c/4b4008dda1d0c6e598d7865631a…
- Patch: git.kernel.org/stable/c/7a64f39ebe1bacd9004a62ecead…
- Patch: git.kernel.org/stable/c/a8e169d308775039200bb9c905c…
- Patch: git.kernel.org/stable/c/bd56c23f1f8681a2857ee924a8b…
- Patch: git.kernel.org/stable/c/bfc9e7be289df11e8e38c98cd78…
- Patch: git.kernel.org/stable/c/dd068ef044128db655f48323a4a…
- Patch: git.kernel.org/stable/c/f80b4afe893dffa9fabdbf80fb4…
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 | ≥ 4.4 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.97 | 6.12.97 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.40 | 6.18.40 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.5 | 7.1.5 |
| Linux | Linux Kernel | 7.2 rc1 | — |
| Linux | Linux Kernel | 7.2 rc2 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1813add71e386f77b3040e6c8dc9b7b3ff965a6c
- Patchhttps://git.kernel.org/stable/c/4b4008dda1d0c6e598d7865631ad4eda63a560f0
- Patchhttps://git.kernel.org/stable/c/7a64f39ebe1bacd9004a62eceadac0b122ec3cc2
- Patchhttps://git.kernel.org/stable/c/a8e169d308775039200bb9c905c7ce420db6e8c5
- Patchhttps://git.kernel.org/stable/c/bd56c23f1f8681a2857ee924a8bd3abf87c8913b
- Patchhttps://git.kernel.org/stable/c/bfc9e7be289df11e8e38c98cd78019d67fdd0bd5
- Patchhttps://git.kernel.org/stable/c/dd068ef044128db655f48323a4acfd5907e04903
- Patchhttps://git.kernel.org/stable/c/f80b4afe893dffa9fabdbf80fb4d6782b24a6793