Descrizione
In the Linux kernel, the following vulnerability has been resolved: USB: misc: uss720: unregister parport on probe failure uss720_probe() registers a parport before reading the 1284 register used to detect unsupported Belkin F5U002 adapters. If get_1284_register() fails, the error path drops the driver private data and the USB device reference, but leaves the parport device registered. Leaving the port registered is more than a private allocation leak: parport_register_port() has already reserved a parport number and registered the parport bus device, while pp->private_data still points at the private data that the common error path is about to release. Undo the pre-announce registration in the get_1284_register() failure branch before jumping to the common private-data cleanup path. Clear priv->pp first, matching the disconnect path and avoiding a stale pointer in the private data. This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.19.317precedenti alla4.20→ aggiornare alla4.20o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.4.279precedenti alla5.5→ aggiornare alla5.5o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.10.221precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.15.162precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.1.96precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.6.36precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.9.7precedenti alla6.12.96→ aggiornare alla6.12.96o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.39→ aggiornare alla6.18.39o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.4→ aggiornare alla7.1.4o 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/0b3073f40cc9f95d5ff0037eb0a…
- Patch: git.kernel.org/stable/c/1712fd71a5aaf81e47c747f1805…
- Patch: git.kernel.org/stable/c/48dd0b2ec9f2e97c486eb68cd0a…
- Patch: git.kernel.org/stable/c/5e62d7857fd51b908b8371062ee…
- Patch: git.kernel.org/stable/c/6bbb98bec71b577fda4f4b48f7a…
- Patch: git.kernel.org/stable/c/729b68a5bad71220ae0914c8bda…
- Patch: git.kernel.org/stable/c/93563243377f8e9b46cc94d9c4f…
- Patch: git.kernel.org/stable/c/b4ecbdc4f8830f5586c4a5cfc38…
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 | ≥ 4.19.317 < 4.20 | 4.20 |
| Linux | Linux Kernel | ≥ 5.4.279 < 5.5 | 5.5 |
| Linux | Linux Kernel | ≥ 5.10.221 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.15.162 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 6.1.96 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.6.36 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.9.7 < 6.12.96 | 6.12.96 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.4 | 7.1.4 |
| Linux | Linux Kernel | 7.2 rc1 | — |
| Linux | Linux Kernel | 7.2 rc2 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/0b3073f40cc9f95d5ff0037eb0a06f5c1725a7ea
- Patchhttps://git.kernel.org/stable/c/1712fd71a5aaf81e47c747f180535fa963ad7830
- Patchhttps://git.kernel.org/stable/c/48dd0b2ec9f2e97c486eb68cd0a64b25c1c3df3e
- Patchhttps://git.kernel.org/stable/c/5e62d7857fd51b908b8371062ee839739a086bbe
- Patchhttps://git.kernel.org/stable/c/6bbb98bec71b577fda4f4b48f7aea5874b04a576
- Patchhttps://git.kernel.org/stable/c/729b68a5bad71220ae0914c8bdab9488ad5be6c8
- Patchhttps://git.kernel.org/stable/c/93563243377f8e9b46cc94d9c4f06533dd31b141
- Patchhttps://git.kernel.org/stable/c/b4ecbdc4f8830f5586c4a5cfc384c00f20f8f8b3