vulnerability
Ubuntu: (CVE-2025-39997): linux vulnerability
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 7 | (AV:L/AC:M/Au:S/C:C/I:C/A:C) | Oct 15, 2025 | Oct 30, 2025 | Nov 4, 2025 |
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free The previous commit 0718a78f6a9f ("ALSA: usb-audio: Kill timer properly at removal") patched a UAF issue caused by the error timer. However, because the error timer kill added in this patch occurs after the endpoint delete, a race condition to UAF still occurs, albeit rarely. Additionally, since kill-cleanup for urb is also missing, freed memory can be accessed in interrupt context related to urb, which can cause UAF. Therefore, to prevent this, error timer and urb must be killed before freeing the heap memory.
Solutions
References
- CVE-2025-39997
- https://attackerkb.com/topics/CVE-2025-39997
- URL-https://git.kernel.org/linus/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3
- URL-https://git.kernel.org/stable/c/353d8c715cc951a980728133c9dd64ca5a0a186c
- URL-https://git.kernel.org/stable/c/647d6b8d22be12842fde6ed0c56859ebc615f21e
- URL-https://git.kernel.org/stable/c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3
- URL-https://git.kernel.org/stable/c/af600e7f5526d16146b3ae99f6ad57bfea79ca33
- URL-https://git.kernel.org/stable/c/dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba
- URL-https://www.cve.org/CVERecord?id=CVE-2025-39997
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.