CVE-2026-98314
>_ Opis
Tłumaczenie automatyczne – może zawierać nieścisłości.
W jądrze Linuksa usunięto następującą lukę:
ALSA: pcm: ustaw timer->private_data przed zarejestrowaniem timera PCM
snd_pcm_timer_init() wywołuje snd_device_register() w celu połączenia nowego
struct snd_timer na globalną listę timerów, gdy jest ona nadal przenoszona
hw.c_registration = snd_pcm_timer_registration (i hw.start/hw.stop),
i dopiero potem ustawia timer->private_data = substream.
Gdy licznik czasu znajdzie się na liście w rejestrze_mutex, zostanie wykonana operacja współbieżna
czytnik może już do niego dotrzeć przez ten sam muteks i wywołać je
oddzwonienia. /proc/asound/timers robi to za pomocą c_activate() i
snd_timer_open()+snd_timer_start() dociera do start()/stop() w ten sam sposób.
Wszystkie trzy liczniki czasu dereferencji->private_data, które w tym skrócie
window ma wartość NULL, co daje wyłuskanie wskaźnika NULL:
podstrumień = timer->private_data;
zwrócić podstrumień->runtime? ... // podstrumień ma wartość NULL
Przenieś wcześniej przypisanie private_data/private_free
snd_device_register(), więc licznik czasu nigdy nie będzie widoczny na liście
bez zestawu private_data. W przypadku błędu snd_device_register().
path, private_free() (snd_pcm_timer_free()) może teraz działać, ale działa tylko
robi substream->timer = NULL, który w tym momencie ma już wartość NULL
ponieważ substream->timer jest ustawiony na nowy timer tylko raz, po a
pomyślna rejestracja — więc ścieżka błędu pozostaje bezpieczna.
>_ Referencje
- https://git.kernel.org/stable/c/0b349249d572633d7c8cdeb917623d1676a2b7c3
- https://git.kernel.org/stable/c/1e713f9bb2ac583521f06b0eb4e22440b1e3d078
- https://git.kernel.org/stable/c/27f167e117eca310661fbcbacb352ea08face067
- https://git.kernel.org/stable/c/555d168bd98daa46daccc68c908201388c834293
- https://git.kernel.org/stable/c/686c7a6af1eea8d2a919303e4c6bbec3de79dbdc
- https://git.kernel.org/stable/c/8c869d5cf5affb20994bdbb60e7d46d65c91b55f
- https://git.kernel.org/stable/c/d63f5a9f8121fb43c798056d7dd34c58f47185d7
- https://git.kernel.org/stable/c/e1eee8f16628f8b6bcae0a366fd6a2dd65e71edd
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