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

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.6$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 8.0
VulDB Meta Temp Score: 7.6

VulDB Base Score: 8.0
VulDB Temp Score: 7.6
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Use after free
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 271556
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-39997

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 6.16.11/6.17.1/6.18-rc1
Patch: dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba/647d6b8d22be12842fde6ed0c56859ebc615f21e/af600e7f5526d16146b3ae99f6ad57bfea79ca33/353d8c715cc951a980728133c9dd64ca5a0a186c/9f2c0ac1423d5f267e7f1d1940780fc764b0fee3

Timelineinfo

04/16/2025 CVE reserved
10/15/2025 +182 days Advisory disclosed
10/15/2025 +0 days VulDB entry created
02/08/2026 +116 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: 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

Entryinfo

Created: 10/15/2025 12:06
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!