CVE-2025-39997 - CVE House
Back to Database
Status published Unknown CVE-2025-39997

ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-39997

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
06513dd6d32c37d0364db8488cfdf3e14da238a8, efaf61052b8ff9ee8968912fbaf02c2847c78ede, 647410a7da46067953a53c0d03f8680eff570959, c611b9e55174e439dcd85a72969b43a95f3827a4, 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1, 62066758d2ae169278e5d6aea5995b1b6f6ddeb5, 6.1.167, 6.15.3, 6.16, 0, 6.1.175, 6.16.11, 6.17.1, 6.18

Timeline

Official Publish: October 15th, 2025
Last Modified: June 1st, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.