CVE-2025-39997
CVE-2025-39997 is a security vulnerability that is still awaiting full analysis and scoring. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- EPSS exploit prediction: 0% (8th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-34576
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2025-39997?
- 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.
- Is CVE-2025-39997 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (8th percentile), an estimate of the probability of exploitation in the next 30 days.
- How do I fix CVE-2025-39997?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-39997 have an EU (EUVD) identifier?
- Yes. CVE-2025-39997 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-34576.
- When was CVE-2025-39997 published?
- CVE-2025-39997 was published on 2025-10-15 and last updated on 2026-06-17.
References
- https://git.kernel.org/stable/c/353d8c715cc951a980728133c9dd64ca5a0a186c
- https://git.kernel.org/stable/c/647d6b8d22be12842fde6ed0c56859ebc615f21e
- https://git.kernel.org/stable/c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3
- https://git.kernel.org/stable/c/af600e7f5526d16146b3ae99f6ad57bfea79ca33
- https://git.kernel.org/stable/c/dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba
- https://git.kernel.org/stable/c/e16985513e89466a236d2a7c202783b4dd0c5a46
- https://git.kernel.org/stable/c/e63f049c7764b615d1d50cb486745fa63372b42d