CVE-2026-89736 usb: gadget: u_audio: Fix use-after-free on sound card disconnect
설명
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: u_audio: Fix use-after-free on sound card disconnect g_audio_cleanup() invokes snd_card_free_when_closed() to initiate sound card teardown and immediately frees the underlying struct snd_uac_chip context. However, snd_card_free_when_closed() returns asynchronously while ALSA control elements (kctls) remain open in userspace. When userspace control applications access or close these open file descriptors, kctl callbacks attempt to dereference kctl->private_data pointing to &uac->c_prm or &uac->p_prm within the freed uac structure, resulting in a use-after-free (UAF) memory corruption. Fix this issue by deferring the destruction of struct snd_uac_chip until all references to the ALSA sound card are released. Register a custom card->private_free callback (u_audio_card_free) during g_audio_setup() that frees uac and its associated playback/capture request and ring buffers only when the sound card reference count drops to zero.
영향 받는 제품 제품 1개
-
해결 버전 있음
Linux
Linux
영향 받는 버전
- 5.10.177 이상 5.10.270 미만
- 5.15.105 이상 5.15.221 미만
- 6.1.22 이상 6.1.188 미만
- 4.14.312 이상 4.15 미만
- 4.19.280 이상 4.20 미만
- 5.4.240 이상 5.5 미만
- 6.2.9 이상 6.3 미만
- 6.3
해결 버전
- 5.10.270 이상
- 5.15.221 이상
- 6.1.188 이상
- 4.15 이상
- 4.20 이상
- 5.5 이상
- 6.3 이상
- 6.3 미만
외 4개 구간 펼치기
- 6.6.157 이상
- 6.12.109 이상
- 6.18.50 이상
- 7.2.4 이상