Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-39997— ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free

EPSS 0.03% · P10

Affected Version Matrix 12

VendorProductVersion RangeStatus
LinuxLinux647410a7da46067953a53c0d03f8680eff570959< dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647baaffected
c611b9e55174e439dcd85a72969b43a95f3827a4< 647d6b8d22be12842fde6ed0c56859ebc615f21eaffected
0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1< af600e7f5526d16146b3ae99f6ad57bfea79ca33affected
0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1< 353d8c715cc951a980728133c9dd64ca5a0a186caffected
0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1< 9f2c0ac1423d5f267e7f1d1940780fc764b0fee3affected
efaf61052b8ff9ee8968912fbaf02c2847c78edeaffected
62066758d2ae169278e5d6aea5995b1b6f6ddeb5affected
6.16affected
… +4 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-39997

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free
Source: NVD (National Vulnerability Database)
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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于usb-audio组件中存在竞争条件,可能导致释放后重用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 647410a7da46067953a53c0d03f8680eff570959 ~ dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba -
LinuxLinux 6.16 -

II. Public POCs for CVE-2025-39997

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-39997

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-10-15 · 34 CVEs total

CVE-2025-39973i40e: add validation for ring_len param
CVE-2025-39981Bluetooth: MGMT: Fix possible UAFs
CVE-2025-39979net/mlx5: fs, fix UAF in flow counter release
CVE-2025-39980nexthop: Forbid FDB status change while nexthop is in a group
CVE-2025-39978octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()
CVE-2025-39977futex: Prevent use-after-free during requeue-PI
CVE-2025-39976futex: Use correct exit on failure from futex_hash_allocate_default()
CVE-2025-39975smb: client: fix wrong index reference in smb2_compound_op()
CVE-2025-39974tracing/osnoise: Fix slab-out-of-bounds in _parse_integer_limit()
CVE-2025-39982Bluetooth: hci_event: Fix UAF in hci_acl_create_conn_sync
CVE-2025-39972i40e: fix idx validation in i40e_validate_queue_map
CVE-2025-39970i40e: fix input validation logic for action_meta
CVE-2025-39971i40e: fix idx validation in config queues msg
CVE-2025-39969i40e: fix validation of VF state in get resources
CVE-2025-39968i40e: add max boundary check for VF filters
CVE-2025-39967fbcon: fix integer overflow in fbcon_do_set_font
CVE-2025-39966iommufd: Fix race during abort for file descriptors
CVE-2025-40000wifi: rtw89: fix use-after-free in rtw89_core_tx_kick_off_and_wait()
CVE-2025-39984net: tun: Update napi->skb after XDP process
CVE-2025-39983Bluetooth: hci_event: Fix UAF in hci_conn_tx_dequeue

Showing top 20 of 34 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-39997

No comments yet


Leave a comment