Descrizione
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: avoid kobject path lookup in DualSense match The DualSense jack-detection input handler verifies that a matching input device belongs to the same physical controller by building kobject path strings for both the input device and the USB audio device, then comparing the path prefix. This was observed when a weak physical connection caused the controller to rapidly disconnect and reconnect. During that repeated hotplug, snd_dualsense_ih_match() can run while the controller's USB device is being disconnected. kobject_get_path() walks ancestor kobjects and dereferences their names; if the USB device kobject name is no longer valid, this can fault in strlen(): RIP: 0010:strlen+0x10/0x30 Call Trace: kobject_get_path+0x34/0x150 snd_dualsense_ih_match+0x49/0xd0 [snd_usb_audio] input_register_device+0x566/0x6a0 ps_probe+0xb89/0x1590 [hid_playstation] The same ownership check can be done without building kobject path strings. The input device is parented below the HID device, USB interface and USB device, so walking the input device parent chain and comparing against the mixer USB device preserves the check without dereferencing kobject names during disconnect.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.4.300precedenti alla5.5→ aggiornare alla5.5o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.10.245precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.15.194precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.1.155precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.6.109precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.12.50precedenti alla6.12.96→ aggiornare alla6.12.96o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.16.10precedenti 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.
Patch e advisory
- Patch: git.kernel.org/stable/c/4246dd043b7a4f8e3bc1d2896e8…
- Patch: git.kernel.org/stable/c/4566bf8ae9dbfe81bdc2ff1702d…
- Patch: git.kernel.org/stable/c/662a1d7b5affc424ea4f4bc20dd…
- Patch: git.kernel.org/stable/c/7693c0cc415f3a16a7a3355f245…
- Patch: git.kernel.org/stable/c/a263eb12cbe2e208e6e637df0f9…
- Patch: git.kernel.org/stable/c/a47ecd904c51ae6a42957feb3cf…
- Patch: git.kernel.org/stable/c/c1da6d3f45036fa63672ee04ad9…
- Patch: git.kernel.org/stable/c/e4c66a149c408e44e60bfec3fab…
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 | ≥ 5.4.300 < 5.5 | 5.5 |
| Linux | Linux Kernel | ≥ 5.10.245 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.15.194 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 6.1.155 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.6.109 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.12.50 < 6.12.96 | 6.12.96 |
| Linux | Linux Kernel | ≥ 6.16.10 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.4 | 7.1.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/4246dd043b7a4f8e3bc1d2896e81d11220610eda
- Patchhttps://git.kernel.org/stable/c/4566bf8ae9dbfe81bdc2ff1702d59db8a233b06e
- Patchhttps://git.kernel.org/stable/c/662a1d7b5affc424ea4f4bc20dd99be29e687886
- Patchhttps://git.kernel.org/stable/c/7693c0cc415f3a16a7a3355f245474a5e661be4e
- Patchhttps://git.kernel.org/stable/c/a263eb12cbe2e208e6e637df0f9b0be9a484158e
- Patchhttps://git.kernel.org/stable/c/a47ecd904c51ae6a42957feb3cf2f4266adee2e5
- Patchhttps://git.kernel.org/stable/c/c1da6d3f45036fa63672ee04ad97cb526b40b987
- Patchhttps://git.kernel.org/stable/c/e4c66a149c408e44e60bfec3fabf08b6b7abbc60