{"id":"CVE-2026-99317","state":"PUBLISHED","title":"ALSA: hwdep: Serialize DSP load requests","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hwdep: Serialize DSP load requests\n\nThe check of the loaded DSP indices and the call of the driver's\ndsp_load callback in snd_hwdep_dsp_load() are not serialized.  A hwdep\nfile descriptor can be shared among threads, or inherited across fork,\nso two SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same index can both\nobserve the index as unloaded and enter the driver's callback\nconcurrently, even though the device itself is opened exclusively.\n\nThis breaks the assumption behind hw->dsp_loaded that a firmware index\nis loaded only once.  For example, snd-usb-usx2y hits\nWARN_ON(usx2y->as04.buffer) in usx2y_async_seq04_init() and may\nallocate the US-428 sequence URBs twice.\n\nSerialize the check, the callback invocation and the bookkeeping with a\nper-hwdep mutex, so that the second request returns -EBUSY.","publishedAt":"2026-11-18T08:42:09.208Z","updatedAt":"2026-11-19T13:52:53.350Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"200bda52a9fd604e13c57d3a548639c13bdfb19c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3634a1beb0395f02807d41a2edf4288732d3f90e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"1b94ca29b1edbbdb357c2c8a9163d1d1755e4ad2","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"aee83c204f80d56b4d55f53acdb8594308ddcd4a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/hwdep.h","sound/core/hwdep.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/hwdep.h","sound/core/hwdep.c"]}],"references":["https://git.kernel.org/stable/c/200bda52a9fd604e13c57d3a548639c13bdfb19c","https://git.kernel.org/stable/c/3634a1beb0395f02807d41a2edf4288732d3f90e","https://git.kernel.org/stable/c/1b94ca29b1edbbdb357c2c8a9163d1d1755e4ad2","https://git.kernel.org/stable/c/aee83c204f80d56b4d55f53acdb8594308ddcd4a"],"weaknesses":[],"ingestedAt":"2026-11-19T13:58:06.563Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99317.json","commit":"5284c0aaed448bdf5be406b31f52fecb38b554c5","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99317","state":"PUBLISHED","datePublished":"2026-11-18T08:42:09.208Z","dateUpdated":"2026-11-19T13:52:53.350Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.407Z"},"containers":{"cna":{"title":"ALSA: hwdep: Serialize DSP load requests","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: hwdep: Serialize DSP load requests\n\nThe check of the loaded DSP indices and the call of the driver's\ndsp_load callback in snd_hwdep_dsp_load() are not serialized.  A hwdep\nfile descriptor can be shared among threads, or inherited across fork,\nso two SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same index can both\nobserve the index as unloaded and enter the driver's callback\nconcurrently, even though the device itself is opened exclusively.\n\nThis breaks the assumption behind hw->dsp_loaded that a firmware index\nis loaded only once.  For example, snd-usb-usx2y hits\nWARN_ON(usx2y->as04.buffer) in usx2y_async_seq04_init() and may\nallocate the US-428 sequence URBs twice.\n\nSerialize the check, the callback invocation and the bookkeeping with a\nper-hwdep mutex, so that the second request returns -EBUSY."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"200bda52a9fd604e13c57d3a548639c13bdfb19c","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3634a1beb0395f02807d41a2edf4288732d3f90e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"1b94ca29b1edbbdb357c2c8a9163d1d1755e4ad2","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"aee83c204f80d56b4d55f53acdb8594308ddcd4a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/hwdep.h","sound/core/hwdep.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/sound/hwdep.h","sound/core/hwdep.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/200bda52a9fd604e13c57d3a548639c13bdfb19c"},{"url":"https://git.kernel.org/stable/c/3634a1beb0395f02807d41a2edf4288732d3f90e"},{"url":"https://git.kernel.org/stable/c/1b94ca29b1edbbdb357c2c8a9163d1d1755e4ad2"},{"url":"https://git.kernel.org/stable/c/aee83c204f80d56b4d55f53acdb8594308ddcd4a"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The patched snd_hwdep_dsp_load is reached from snd_hwdep_ioctl's SNDRV_HWDEP_IOCTL_DSP_LOAD on the local hwdep node (/dev/snd/hwC*D*), via snd_hwdep_dsp_load_user. The only driver callback is snd_usx2y_hwdep_dsp_load; the colliding index and image come from that ioctl, not from a remote protocol message.\nAC:L - A local holder of one hwdep fd (exclusive=1 still allows threads and fork to share it) issues two DSP_LOAD ioctls for index 1 while hw->dsp_loaded is clear, which the attacker gets by opening the node before usx2yloader or by replugging the US-x2y. Both calls pass the unlocked dsp_loaded test and run snd_usx2y_hwdep_dsp_load together.\nPR:L - snd_hwdep_open and snd_hwdep_ioctl contain no capable() check. udev grants the active session ACL on SUBSYSTEM==\"sound\" (uaccess, group audio), so an ordinary logged-in user can open the hwdep node and issue DSP_LOAD.\nUI:N - The attacker opens the fd and fires both SNDRV_HWDEP_IOCTL_DSP_LOAD calls. Firmware loading and replug, if needed to clear dsp_loaded, are the attacker's own actions.\nS:U - Impact stays inside the host kernel the caller is already running in: usx2ydev, its URBs, and the snd_card device list. No guest/host or IOMMU boundary is crossed.\nC:H - Both USB_ID_US224 and USB_ID_US428 loads call usx2y_rate_set, which kfrees the snd_usx2y_urb_seq still linked from usx2y->us04 while i_usx2y_in04_int passes us04->urb[] to usb_submit_urb. After reclaim, that urb pointer is attacker-controlled and usb_submit_urb dereferences it.\nI:H - i_usx2y_in04_int increments us04->submitted and usb_submit_urb writes urb->status, urb->hcpriv and the endpoint queue through the reclaimed us04->urb pointer. On USB_ID_US428 the second usx2y_audio_stream_new also stores pointers past usx2y->subs[4] into prepare_subs and prepare_wait_queue.\nA:H - The freed us04 URB is used in interrupt context, snd_device_new list_add races on card->devices from concurrent usx2y_create_alsa_devices, and wait_event runs on the overwritten prepare_wait_queue. Any of those oopses or livelocks the kernel; usx2y_async_seq04_init's WARN_ON(as04.buffer) is the same race when the second call loses."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T13:52:53.350Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}