CVE-2025-39997

Source
https://cve.org/CVERecord?id=CVE-2025-39997
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39997.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-39997
Downstream
BELL (1)
DEBIAN (1)
openSUSE (3)
SUSE (15)
UBUNTU (1)
Related
Published
2025-10-15T07:58:21Z
Modified
2026-10-16T02:31:20Z
Summary
ALSA: usb-audio: fix race condition to UAF in snd_usbmidi_free
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39997.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
06513dd6d32c37d0364db8488cfdf3e14da238a8
Fixed
e63f049c7764b615d1d50cb486745fa63372b42d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
efaf61052b8ff9ee8968912fbaf02c2847c78ede
Fixed
e16985513e89466a236d2a7c202783b4dd0c5a46
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
647410a7da46067953a53c0d03f8680eff570959
Fixed
dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c611b9e55174e439dcd85a72969b43a95f3827a4
Fixed
647d6b8d22be12842fde6ed0c56859ebc615f21e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1
Fixed
af600e7f5526d16146b3ae99f6ad57bfea79ca33
Fixed
353d8c715cc951a980728133c9dd64ca5a0a186c
Fixed
9f2c0ac1423d5f267e7f1d1940780fc764b0fee3
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.1.167
Fixed
6.1.175
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.15.3
Fixed
6.16
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
62066758d2ae169278e5d6aea5995b1b6f6ddeb5

Affected versions

v6.*
v6.1.167
v6.1.168
v6.1.169
v6.1.170
v6.1.171
v6.1.172
v6.1.173
v6.1.174
v6.15.10
v6.15.11
v6.15.3
v6.15.4
v6.15.5
v6.15.6
v6.15.7
v6.15.8
v6.15.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39997.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.16.11
Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.17.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39997.json"