CVE-2026-89901
>_ Opis
Tłumaczenie automatyczne – może zawierać nieścisłości.
W jądrze Linuksa usunięto następującą lukę:
media: airspy: użyj vb2_video_unregister_device() przy rozłączaniu, aby naprawić deref NULL
airspy_disconnect() czyści s->udev pod v4l2_lock, ale
airspy_stop_streaming() bezwarunkowo wywołuje funkcję airspy_ctrl_msg() i
airspy_free_stream_bufs() później. Jeśli użytkownik przesyłania strumieniowego zamknie plik
urządzenia po rozłączeniu, uruchamia funkcję stop_streaming() i usuwa referencje do
NULL s->udev:
airspy_stop_streaming()
airspy_ctrl_msg(s, CMD_RECEIVER_MODE, 0, 0, NULL, 0)
usb_sndctrlpipe(s->udev, 0) /* NULL deref */
airspy_free_stream_bufs(s)
usb_free_coherent(s->udev, ...) /* NULL deref */
Sterownik airspy używa vb2_fop_release() w swoich operacjach na plikach, więc
zamień video_unregister_device(&s->vdev) na
vb2_video_unregister_device(&s->vdev) i przenieś go przed wyczyszczeniem
s->udev. vb2_video_unregister_device() zwalnia kolejkę vb2, która
synchronicznie uruchamia funkcję airspy_stop_streaming() jeśli przesyłanie strumieniowe jest aktywne, więc
URB, spójne bufory strumienia DMA i sprzętowa kontrola zatrzymania
wiadomość, wszystko jest wykonywane, dopóki s->udev jest nadal ważny.
vb2_video_unregister_device() blokuje vdev->queue->lock (vb_queue_lock)
wewnętrznie, a stop_streaming() blokuje v4l2_lock, więc poprzednia metoda zewnętrzna
mutex_lock(&s->vb_queue_lock) / mutex_lock(&s->v4l2_lock) para wokół
sekwencja wyrejestrowania uległaby samoczynnemu zakleszczeniu i została usunięta. A
krótka sekcja krytyczna v4l2_lock wokół s->udev = NULL pozostaje taka sama
ścieżka ioctl, która nadal zawiera deskryptor pliku, widzi spójny stan.
Problem zidentyfikowany w wyniku automatycznego przeglądu serii INV-003 pod adresem
https://sashiko.dev/
>_ Referencje
- https://git.kernel.org/stable/c/155d0378ae0d6305cc4840583a6b42d2d0595bff
- https://git.kernel.org/stable/c/297fee023f46d771a844520675692ea089d80d9d
- https://git.kernel.org/stable/c/2f378dc45e685fc825d2dd08e7864666d6fcc009
- https://git.kernel.org/stable/c/6e4ea90fdc6608cd5fac342e146ab6ae15d430bc
- https://git.kernel.org/stable/c/75089cea32e5055773bd13116236d08fdc98678a
- https://git.kernel.org/stable/c/a9a8c37ddda9fa3687b142be9098e1c37b8faf35
- https://git.kernel.org/stable/c/c6749ac8f59cc80eb1b2d52f167fdf13e12655cc
- https://git.kernel.org/stable/c/c9081e2655188d2d134a741aec837dc70439d505
Dane podatności pochodzą z oficjalnych źródeł (CVE® List / NVD). Opisy po polsku są tłumaczone automatycznie i mogą zawierać nieścisłości – na stronie rekordu można wyświetlić wersję angielską.
This product uses the NVD API but is not endorsed or certified by the NVD.
Copyright © 1999–2026, The MITRE Corporation. CVE is a registered trademark and the CVE logo is a registered trademark of The MITRE Corporation.
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. ALL DOCUMENTS AND THE INFORMATION CONTAINED THEREIN PROVIDED BY MITRE ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
NVD Terms of Use / CVE® Terms of Use / nvd.nist.gov / cve.org