Descrizione
In the Linux kernel, the following vulnerability has been resolved: i2c: core: fix adapter registration race Adapters can be looked up based on their id using i2c_get_adapter() which takes a reference to the embedded struct device. Make sure that the adapter (including its struct device) has been initialised before adding it to the IDR to avoid accessing uninitialised data which could, for example, lead to NULL-pointer dereferences or use-after-free. Note that the i2c-dev chardev, which is registered from a bus notifier, currently uses i2c_get_adapter() so the adapter needs to be added to the IDR before registration.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.22precedenti 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.95→ aggiornare alla6.12.95o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.38→ aggiornare alla6.18.38o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.3→ aggiornare alla7.1.3o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/1febb174815bcae56d73587e99e…
- Patch: git.kernel.org/stable/c/2e57c788e71f1763445f812eba4…
- Patch: git.kernel.org/stable/c/6a946038f2a5a8c29048c6af369…
- Patch: git.kernel.org/stable/c/78793c75dc6d0ff2e4d50ad6173…
- Patch: git.kernel.org/stable/c/a4365bc41baaf67f3a5aa8556d2…
- Patch: git.kernel.org/stable/c/a4c8094bbf4c6fa68b17e3b16f6…
- Patch: git.kernel.org/stable/c/ba14d7cf2fe7284610a29854bdf…
- Patch: git.kernel.org/stable/c/da9d8d9711f78deebc202d0cffc…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Limitare l'accesso di rete al servizio e applicare limiti di connessione per ridurre la finestra di sfruttamento.
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 | ≥ 2.6.22 < 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.95 | 6.12.95 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.38 | 6.18.38 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.3 | 7.1.3 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/1febb174815bcae56d73587e99e8f87e02f0784d
- Patchhttps://git.kernel.org/stable/c/2e57c788e71f1763445f812eba4e0b4a2fbd0646
- Patchhttps://git.kernel.org/stable/c/6a946038f2a5a8c29048c6af369d4e391448a5c5
- Patchhttps://git.kernel.org/stable/c/78793c75dc6d0ff2e4d50ad617349b328a99054e
- Patchhttps://git.kernel.org/stable/c/a4365bc41baaf67f3a5aa8556d23544e6ec7480a
- Patchhttps://git.kernel.org/stable/c/a4c8094bbf4c6fa68b17e3b16f6a0a1b7a14f3e0
- Patchhttps://git.kernel.org/stable/c/ba14d7cf2fe7284610a29854bdff22b2537d3ce6
- Patchhttps://git.kernel.org/stable/c/da9d8d9711f78deebc202d0cffcf577e45ee8621
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html