{"id":"CVE-2025-39997","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free\n\nThe previous commit 0718a78f6a9f (\"ALSA: usb-audio: Kill timer properly at\nremoval\") patched a UAF issue…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free\n\nThe previous commit 0718a78f6a9f (\"ALSA: usb-audio: Kill timer properly at\nremoval\") patched a UAF issue…","severity":"none","published":"2025-10-15","updated":"2026-10-15","sourceUpdated":"2026-10-15T02:18:04.287","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-39997","references":[{"url":"https://git.kernel.org/stable/c/353d8c715cc951a980728133c9dd64ca5a0a186c","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/647d6b8d22be12842fde6ed0c56859ebc615f21e","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/af600e7f5526d16146b3ae99f6ad57bfea79ca33","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e16985513e89466a236d2a7c202783b4dd0c5a46","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e63f049c7764b615d1d50cb486745fa63372b42d","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd","cve.org"],"epss":0.00211,"epssPercentile":0.11309,"ingestedAt":"2026-10-15T03:30:12.822Z","vendor":"Linux","product":"Linux","affected":["Linux >= 06513dd6d32c37d0364db8488cfdf3e14da238a8 < e63f049c7764b615d1d50cb486745fa63372b42d","Linux >= efaf61052b8ff9ee8968912fbaf02c2847c78ede < e16985513e89466a236d2a7c202783b4dd0c5a46","Linux >= 647410a7da46067953a53c0d03f8680eff570959 < dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba","Linux >= c611b9e55174e439dcd85a72969b43a95f3827a4 < 647d6b8d22be12842fde6ed0c56859ebc615f21e","Linux >= 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 < af600e7f5526d16146b3ae99f6ad57bfea79ca33","Linux >= 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 < 353d8c715cc951a980728133c9dd64ca5a0a186c","Linux >= 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 < 9f2c0ac1423d5f267e7f1d1940780fc764b0fee3","Linux 62066758d2ae169278e5d6aea5995b1b6f6ddeb5","Linux >= 6.1.167 < 6.1.175","Linux >= 6.15.3 < 6.16","Linux 6.16"],"slug":"CVE-2025-39997","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free\n\nThe previous commit 0718a78f6a9f (\"ALSA: usb-audio: Kill timer properly at\nremoval\") patched a UAF issue caused by the error timer.\n\nHowever, because the error timer kill added in this patch occurs after the\nendpoint delete, a race condition to UAF still occurs, albeit rarely.\n\nAdditionally, since kill-cleanup for urb is also missing, freed memory can\nbe accessed in interrupt context related to urb, which can cause UAF.\n\nTherefore, to prevent this, error timer and urb must be killed before\nfreeing the heap memory.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}