{"id":"CVE-2026-74639","aliases":["CVE-2026-74639"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: us144mkii: re-anchor capture URBs on resubmission","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: us144mkii: re-anchor capture URBs on resubmission\n\ncapture_urb_complete() resubmits each capture URB without anchoring it:\n\n\tusb_get_urb(urb);\n\tret = usb_submit_urb(urb, GFP_ATOMIC);\n\nAnchoring is a property of a submission, not of the URB.  The giveback\npath calls usb_unanchor_urb() before urb->complete(), so an URB\nresubmitted from its own completion handler is off the anchor.  The\ncapture URBs are anchored once, at stream start, so from the first\ncompletion onward tascam->capture_anchor is empty.\n\ntascam_free_urbs(), tascam_disconnect(), tascam_suspend() and the\nstop-work path all call usb_kill_anchored_urbs(&tascam->capture_anchor)\nto reap the capture URBs before anything is freed.  With the anchor empty\nthose calls return immediately and the URBs stay queued on the host\ncontroller.\n\ntascam_free_urbs() then returns the capture transfer buffers with\nusb_free_coherent(), and snd_card_free() releases the snd_card\nallocation that embeds tascam (card->private_data).  The controller\ncompletes the queued URBs afterwards, writing device-supplied data into\nthe freed transfer buffer, and capture_urb_complete() dereferences the\nfreed driver object.\n\nKASAN on 7.2.0-rc5 (arm64):\n\n  BUG: KASAN: slab-use-after-free in dummy_timer\n  Write of size 512 at addr ffff000015b62000\n   __asan_memcpy\n   dummy_timer\n   hrtimer_run_softirq\n  Allocated by task 64:\n   usb_alloc_coherent\n   tascam_alloc_urbs\n   tascam_probe\n  Freed by task 170:\n   usb_free_coherent\n   tascam_free_urbs\n   tascam_disconnect\n   usb_unbind_interface\n\n  BUG: KASAN: slab-use-after-free in capture_urb_complete\n  Read of size 4 at addr ffff0000170ee878\n  Freed by task 170:\n   release_card_device\n   snd_card_free\n   tascam_disconnect\n\nRestore the usb_anchor_urb() between the reference count bump and the\nresubmission.  That also makes the handler's usb_unanchor_urb() failure\narm meaningful again and restores usb_kill_anchored_urbs() as a barrier\non the disconnect, suspend and stop-work paths.\n\nThe anchoring was removed on the premise that the URB is already anchored\nfrom the initial submission, which does not hold once the first giveback\nhas run.\n\nDiscovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: us144mkii: re-anchor capture URBs on resubmission\n\ncapture_urb_complete() resubmits each capture URB without anchoring it:\n\n\tusb_get_urb(urb);\n\tret = usb_submit_urb(urb, GFP_ATOMIC);\n\nAnchoring is a property of a submission, not of the URB.  The giveback\npath calls usb_unanchor_urb() before urb->complete(), so an URB\nresubmitted from its own completion handler is off the anchor.  The\ncapture URBs are anchored once, at stream start, so from the first\ncompletion onward tascam->capture_anchor is empty.\n\ntascam_free_urbs(), tascam_disconnect(), tascam_suspend() and the\nstop-work path all call usb_kill_anchored_urbs(&tascam->capture_anchor)\nto reap the capture URBs before anything is freed.  With the anchor empty\nthose calls return immediately and the URBs stay queued on the host\ncontroller.\n\ntascam_free_urbs() then returns the capture transfer buffers with\nusb_free_coherent(), and snd_card_free() releases the snd_card\nallocation that embeds tascam (card->private_data).  The controller\ncompletes the queued URBs afterwards, writing device-supplied data into\nthe freed transfer buffer, and capture_urb_complete() dereferences the\nfreed driver object.\n\nKASAN on 7.2.0-rc5 (arm64):\n\n  BUG: KASAN: slab-use-after-free in dummy_timer\n  Write of size 512 at addr ffff000015b62000\n   __asan_memcpy\n   dummy_timer\n   hrtimer_run_softirq\n  Allocated by task 64:\n   usb_alloc_coherent\n   tascam_alloc_urbs\n   tascam_probe\n  Freed by task 170:\n   usb_free_coherent\n   tascam_free_urbs\n   tascam_disconnect\n   usb_unbind_interface\n\n  BUG: KASAN: slab-use-after-free in capture_urb_complete\n  Read of size 4 at addr ffff0000170ee878\n  Freed by task 170:\n   release_card_device\n   snd_card_free\n   tascam_disconnect\n\nRestore the usb_anchor_urb() between the reference count bump and the\nresubmission.  That also makes the handler's usb_unanchor_urb() failure\narm meaningful again and restores usb_kill_anchored_urbs() as a barrier\non the disconnect, suspend and stop-work paths.\n\nThe anchoring was removed on the premise that the URB is already anchored\nfrom the initial submission, which does not hold once the first giveback\nhas run.\n\nDiscovered by XBOW, triaged by Baul Lee <baul.lee@xbow.com>","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nALSA: us144mkii: reanclar URBs de captura en la resubmisión\n\ncapture_urb_complete() resomete cada URB de captura sin anclarlo:\n\n\tusb_get_urb(urb);\n\tret = usb_submit_urb(urb, GFP_ATOMIC);\n\nEl anclaje es una propiedad de una submisión, no del URB. La ruta de devolución llama a usb_unanchor_urb() antes de urb -> complete(), por lo que un URB resometido desde su propio gestor de completado está fuera del anclaje. Los URBs de captura se anclan una vez, al inicio del flujo, por lo que desde la primera completación en adelante tascam -> capture_anchor está vacío.\n\ntascam_free_urbs(), tascam_disconnect(), tascam_suspend() y la ruta de detención del trabajo llaman a usb_kill_anchored_urbs(&tascam -> capture_anchor) para recolectar los URBs de captura antes de que se libere algo. Con el anclaje vacío, esas llamadas regresan inmediatamente y los URBs permanecen en cola en el controlador de host.\n\ntascam_free_urbs() luego devuelve los búferes de transferencia de captura con usb_free_coherent(), y snd_card_free() libera la asignación de snd_card que incrusta tascam (card -> private_data). El controlador completa los URBs en cola después, escribiendo datos suministrados por el dispositivo en el búfer de transferencia liberado, y capture_urb_complete() desreferencia el objeto de controlador liberado.\n\nKASAN en 7.2.0-rc5 (arm64):\n\n  ERROR: KASAN: uso después de liberación de slab en dummy_timer\n  Escritura de tamaño 512 en la dirección ffff000015b62000\n   __asan_memcpy\n   dummy_timer\n   hrtimer_run_softirq\n  Asignado por la tarea 64:\n   usb_alloc_coherent\n   tascam_alloc_urbs\n   tascam_probe\n  Liberado por la tarea 170:\n   usb_free_coherent\n   tascam_free_urbs\n   tascam_disconnect\n   usb_unbind_interface\n\n  ERROR: KASAN: uso después de liberación de slab en capture_urb_complete\n  Lectura de tamaño 4 en la dirección ffff0000170ee878\n  Liberado por la tarea 170:\n   release_card_device\n   snd_card_free\n   tascam_disconnect\n\nRestaurar usb_anchor_urb() entre el incremento del contador de referencias y la resubmisión. Eso también hace que el brazo de fallo de usb_unanchor_urb() del gestor vuelva a ser significativo y restaura usb_kill_anchored_urbs() como una barrera en las rutas de desconexión, suspensión y detención del trabajo.\n\nEl anclaje fue eliminado bajo la premisa de que el URB ya está anclado desde la submisión inicial, lo cual no se mantiene una vez que la primera devolución ha ocurrido.\n\nDescubierto por XBOW, clasificado por Baul Lee <baul.lee@xbow.com>","source":"nvd"}],"published":"2026-08-22T15:32:18.236Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"16f14f55141d4c55c3f321f93c328fff7cd6860a","fixed":"7779249561d14b8a17c0c83783225794e24a587d","status":"affected"},{"type":"git","introduced":"ab1db64912428cdf06a4f9542e16e0575e9ad59f","fixed":"a5548ce916594c811bd90ce33d67baa3557a6791","status":"affected"},{"type":"git","introduced":"5cff1529a2f9b3461a7f5a6e36a86682fc290534","fixed":"2615f0fb90df8cf5a96133ca4be74294ed288604","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.18.39","fixed":"6.18.45","status":"affected"},{"type":"semver","introduced":"7.1.4","fixed":"7.1.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7779249561d14b8a17c0c83783225794e24a587d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5548ce916594c811bd90ce33d67baa3557a6791","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2615f0fb90df8cf5a96133ca4be74294ed288604","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74639","url":"https://www.cve.org/CVERecord?id=CVE-2026-74639","licence":"CVE Terms of Use","modified":"2026-08-22T15:32:18.236Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74639","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74639","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:34.912Z","epss":{"score":0.00166,"percentile":0.06135,"date":"2026-12-01T12:00:22.000Z"}}