Linux Kernel up to 6.16.10/6.17.0 ALSA snd_usbmidi_free use after free

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.6 | $0-$5k | 0.00 |
Summary
A vulnerability described as critical has been identified in Linux Kernel up to 6.16.10/6.17.0. This impacts the function snd_usbmidi_free of the component ALSA. Such manipulation leads to use after free.
This vulnerability is traded as CVE-2025-39997. There is no exploit available.
Upgrading the affected component is recommended.
Details
A vulnerability was found in Linux Kernel up to 6.16.10/6.17.0. It has been rated as critical. Affected by this issue is the function snd_usbmidi_free of the component ALSA. The manipulation with an unknown input leads to a use after free vulnerability. Using CWE to declare the problem leads to CWE-416. Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code. Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is available at git.kernel.org. This vulnerability is handled as CVE-2025-39997 since 04/16/2025. The exploitation is known to be easy. Technical details are known, but there is no available exploit. The structure of the vulnerability defines a possible price range of USD $0-$5k at the moment (estimation calculated on 02/08/2026).
The vulnerability scanner Nessus provides a plugin with the ID 271556 (Linux Distros Unpatched Vulnerability : CVE-2025-39997), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 6.16.11, 6.17.1 or 6.18-rc1 eliminates this vulnerability. Applying the patch dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba/647d6b8d22be12842fde6ed0c56859ebc615f21e/af600e7f5526d16146b3ae99f6ad57bfea79ca33/353d8c715cc951a980728133c9dd64ca5a0a186c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (271556) and CERT Bund (WID-SEC-2025-2298). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Affected
- Google Container-Optimized OS
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- SUSE openSUSE
- RESF Rocky Linux
- Open Source Linux Kernel
- IBM QRadar SIEM
- Dell NetWorker
Product
Type
Vendor
Name
Version
- 6.0
- 6.1
- 6.2
- 6.3
- 6.4
- 6.5
- 6.6
- 6.7
- 6.8
- 6.9
- 6.10
- 6.11
- 6.12
- 6.13
- 6.14
- 6.15
- 6.16
- 6.16.0
- 6.16.1
- 6.16.2
- 6.16.3
- 6.16.4
- 6.16.5
- 6.16.6
- 6.16.7
- 6.16.8
- 6.16.9
- 6.16.10
- 6.17.0
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.0VulDB Meta Temp Score: 7.6
VulDB Base Score: 8.0
VulDB Temp Score: 7.6
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Use after freeCWE: CWE-416 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 271556
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-39997
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Kernel 6.16.11/6.17.1/6.18-rc1
Patch: dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba/647d6b8d22be12842fde6ed0c56859ebc615f21e/af600e7f5526d16146b3ae99f6ad57bfea79ca33/353d8c715cc951a980728133c9dd64ca5a0a186c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3
Timeline
04/16/2025 CVE reserved10/15/2025 Advisory disclosed
10/15/2025 VulDB entry created
02/08/2026 VulDB entry last update
Sources
Vendor: kernel.orgAdvisory: git.kernel.org
Status: Confirmed
CVE: CVE-2025-39997 (🔒)
GCVE (CVE): GCVE-0-2025-39997
GCVE (VulDB): GCVE-100-328634
CERT Bund: WID-SEC-2025-2298 - Linux Kernel: Mehrere Schwachstellen
Entry
Created: 10/15/2025 12:06Updated: 02/08/2026 20:15
Changes: 10/15/2025 12:06 (59), 10/27/2025 10:21 (2), 11/03/2025 19:33 (7), 11/22/2025 18:08 (1), 12/21/2025 09:10 (1), 02/08/2026 20:15 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.