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

CVE-2025-39997
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 11 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

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.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 06513dd6d32c37d0364db8488cfdf3e14da238a8 < e63f049c7764b615d1d50cb486745fa63372b42d ; affected efaf61052b8ff9ee8968912fbaf02c2847c78ede < e16985513e89466a236d2a7c202783b4dd0c5a46 ; affected 647410a7da46067953a53c0d03f8680eff570959 < dc4874366cf6cf4a31d8fa4b7f0e2a5b2d7647ba ; affected c611b9e55174e439dcd85a72969b43a95f3827a4 < 647d6b8d22be12842fde6ed0c56859ebc615f21e ; affected 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 < af600e7f5526d16146b3ae99f6ad57bfea79ca33 ; affected 0718a78f6a9f04b88d0dc9616cc216b31c5f3cf1 < 353d8c715cc951a980728133c9dd64ca5a0a186c
Linux · Linuxaffected 6.16 ; unaffected 0 < 6.16 ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.16.11 ≤ 6.16.* ; unaffected 6.17.1 ≤ 6.17.* ; unaffected 6.18 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD