Descrizione
In the Linux kernel, the following vulnerability has been resolved: counter: rz-mtu3-cnt: do not use struct rz_mtu3_channel's dev member The counter driver can use HW channels 1 and 2, while the PWM driver can use HW channels 0, 1, 2, 3, 4, 6, 7. The dev member is assigned both by the counter driver and the PWM driver for channels 1 and 2, to their own struct device instance, overwriting the previous value. The sub-drivers race to assign their own struct device pointer to the same struct rz_mtu3_channel's dev member. The dev member of struct rz_mtu3_channel is used by the counter sub-driver for runtime PM. Depending on the probe order of the counter and PWM sub-drivers, the dev member may point to the wrong struct device instance, causing the counter sub-driver to do runtime PM actions on the wrong device. To fix this, use the parent pointer of the counter, which is assigned during probe to the correct struct device, not the struct device pointer inside the shared struct rz_mtu3_channel.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
6.4precedenti alla6.6.134→ aggiornare alla6.6.134o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.81→ aggiornare alla6.12.81o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.22→ aggiornare alla6.18.22o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.12→ aggiornare alla6.19.12o 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. - Linux Linux Kernel: vulnerabile la versione
7.0 rc5→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.0 rc6→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/28a371be901ef44ee03726c2575…
- Patch: git.kernel.org/stable/c/2932095c114b98cbb40ccf34fc0…
- Patch: git.kernel.org/stable/c/633dfbf0eb2766c597c1a59dd83…
- Patch: git.kernel.org/stable/c/63be324c795262f0e316c6fe9b3…
- Patch: git.kernel.org/stable/c/6562290225c197e2e193a53de2a…
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 Kernel | ≥ 6.4 < 6.6.134 | 6.6.134 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.81 | 6.12.81 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.22 | 6.18.22 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.12 | 6.19.12 |
| Linux | Linux Kernel | 7.0 rc1 | — |
| Linux | Linux Kernel | 7.0 rc2 | — |
| Linux | Linux Kernel | 7.0 rc3 | — |
| Linux | Linux Kernel | 7.0 rc4 | — |
| Linux | Linux Kernel | 7.0 rc5 | — |
| Linux | Linux Kernel | 7.0 rc6 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/28a371be901ef44ee03726c2575d7d6795521fe0
- Patchhttps://git.kernel.org/stable/c/2932095c114b98cbb40ccf34fc00d613cb17cead
- Patchhttps://git.kernel.org/stable/c/633dfbf0eb2766c597c1a59dd83035c82e14791d
- Patchhttps://git.kernel.org/stable/c/63be324c795262f0e316c6fe9b329d83afa1ec93
- Patchhttps://git.kernel.org/stable/c/6562290225c197e2e193a53de2a517815288dcd1