{"id":"CVE-2025-68194","aliases":["CVE-2025-68194"],"related":[],"kind":"vulnerability","state":"published","title":"media: imon: make send_packet() more robust","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: imon: make send_packet() more robust\n\nsyzbot is reporting that imon has three problems which result in\nhung tasks due to forever holding device lock [1].\n\nFirst problem is that when usb_rx_callback_intf0() once got -EPROTO error\nafter ictx->dev_present_intf0 became true, usb_rx_callback_intf0()\nresubmits urb after printk(), and resubmitted urb causes\nusb_rx_callback_intf0() to again get -EPROTO error. This results in\nprintk() flooding (RCU stalls).\n\nAlan Stern commented [2] that\n\n  In theory it's okay to resubmit _if_ the driver has a robust\n  error-recovery scheme (such as giving up after some fixed limit on the\n  number of errors or after some fixed time has elapsed, perhaps with a\n  time delay to prevent a flood of errors).  Most drivers don't bother to\n  do this; they simply give up right away.  This makes them more\n  vulnerable to short-term noise interference during USB transfers, but in\n  reality such interference is quite rare.  There's nothing really wrong\n  with giving up right away.\n\nbut imon has a poor error-recovery scheme which just retries forever;\nthis behavior should be fixed.\n\nSince I'm not sure whether it is safe for imon users to give up upon any\nerror code, this patch takes care of only union of error codes chosen from\nmodules in drivers/media/rc/ directory which handle -EPROTO error (i.e.\nir_toy, mceusb and igorplugusb).\n\nSecond problem is that when usb_rx_callback_intf0() once got -EPROTO error\nbefore ictx->dev_present_intf0 becomes true, usb_rx_callback_intf0() always\nresubmits urb due to commit 8791d63af0cf (\"[media] imon: don't wedge\nhardware after early callbacks\"). Move the ictx->dev_present_intf0 test\nintroduced by commit 6f6b90c9231a (\"[media] imon: don't parse scancodes\nuntil intf configured\") to immediately before imon_incoming_packet(), or\nthe first problem explained above happens without printk() flooding (i.e.\nhung task).\n\nThird problem is that when usb_rx_callback_intf0() is not called for some\nreason (e.g. flaky hardware; the reproducer for this problem sometimes\nprevents usb_rx_callback_intf0() from being called),\nwait_for_completion_interruptible() in send_packet() never returns (i.e.\nhung task). As a workaround for such situation, change send_packet() to\nwait for completion with timeout of 10 seconds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: imon: make send_packet() more robust\n\nsyzbot is reporting that imon has three problems which result in\nhung tasks due to forever holding device lock [1].\n\nFirst problem is that when usb_rx_callback_intf0() once got -EPROTO error\nafter ictx->dev_present_intf0 became true, usb_rx_callback_intf0()\nresubmits urb after printk(), and resubmitted urb causes\nusb_rx_callback_intf0() to again get -EPROTO error. This results in\nprintk() flooding (RCU stalls).\n\nAlan Stern commented [2] that\n\n  In theory it's okay to resubmit _if_ the driver has a robust\n  error-recovery scheme (such as giving up after some fixed limit on the\n  number of errors or after some fixed time has elapsed, perhaps with a\n  time delay to prevent a flood of errors).  Most drivers don't bother to\n  do this; they simply give up right away.  This makes them more\n  vulnerable to short-term noise interference during USB transfers, but in\n  reality such interference is quite rare.  There's nothing really wrong\n  with giving up right away.\n\nbut imon has a poor error-recovery scheme which just retries forever;\nthis behavior should be fixed.\n\nSince I'm not sure whether it is safe for imon users to give up upon any\nerror code, this patch takes care of only union of error codes chosen from\nmodules in drivers/media/rc/ directory which handle -EPROTO error (i.e.\nir_toy, mceusb and igorplugusb).\n\nSecond problem is that when usb_rx_callback_intf0() once got -EPROTO error\nbefore ictx->dev_present_intf0 becomes true, usb_rx_callback_intf0() always\nresubmits urb due to commit 8791d63af0cf (\"[media] imon: don't wedge\nhardware after early callbacks\"). Move the ictx->dev_present_intf0 test\nintroduced by commit 6f6b90c9231a (\"[media] imon: don't parse scancodes\nuntil intf configured\") to immediately before imon_incoming_packet(), or\nthe first problem explained above happens without printk() flooding (i.e.\nhung task).\n\nThird problem is that when usb_rx_callback_intf0() is not called for some\nreason (e.g. flaky hardware; the reproducer for this problem sometimes\nprevents usb_rx_callback_intf0() from being called),\nwait_for_completion_interruptible() in send_packet() never returns (i.e.\nhung task). As a workaround for such situation, change send_packet() to\nwait for completion with timeout of 10 seconds.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmedia: imon: hacer send_packet() más robusto\n\nsyzbot está informando que imon tiene tres problemas que resultan en tareas colgadas debido a mantener el bloqueo del dispositivo indefinidamente [1].\n\nEl primer problema es que cuando usb_rx_callback_intf0() una vez obtuvo un error -EPROTO después de que ictx -> dev_present_intf0 se volvió verdadero, usb_rx_callback_intf0() reenvía el urb después de printk(), y el urb reenviado hace que usb_rx_callback_intf0() vuelva a obtener un error -EPROTO. Esto resulta en inundación de printk() (bloqueos de RCU).\n\nAlan Stern comentó [2] que\n\nEn teoría, está bien reenviar _si_ el controlador tiene un esquema robusto de recuperación de errores (como rendirse después de un límite fijo en el número de errores o después de que haya transcurrido un tiempo fijo, quizás con un retardo de tiempo para evitar una inundación de errores). La mayoría de los controladores no se molestan en hacer esto; simplemente se rinden de inmediato. Esto los hace más vulnerables a la interferencia de ruido a corto plazo durante las transferencias USB, pero en realidad dicha interferencia es bastante rara. No hay nada realmente malo en rendirse de inmediato.\n\npero imon tiene un esquema deficiente de recuperación de errores que simplemente reintenta indefinidamente; este comportamiento debería ser corregido.\n\nDado que no estoy seguro de si es seguro para los usuarios de imon rendirse ante cualquier código de error, este parche se encarga solo de la unión de códigos de error elegidos de módulos en el directorio drivers/media/rc/ que manejan el error -EPROTO (es decir, ir_toy, mceusb e igorplugusb).\n\nEl segundo problema es que cuando usb_rx_callback_intf0() una vez obtuvo un error -EPROTO antes de que ictx -> dev_present_intf0 se vuelva verdadero, usb_rx_callback_intf0() siempre reenvía el urb debido al commit 8791d63af0cf ('[media] imon: no atascar el hardware después de las devoluciones de llamada tempranas'). Mover la prueba ictx -> dev_present_intf0 introducida por el commit 6f6b90c9231a ('[media] imon: no analizar códigos de escaneo hasta que la interfaz esté configurada') a inmediatamente antes de imon_incoming_packet(), o el primer problema explicado anteriormente ocurre sin inundación de printk() (es decir, tarea colgada).\n\nEl tercer problema es que cuando usb_rx_callback_intf0() no es llamado por alguna razón (por ejemplo, hardware inestable; el reproductor de este problema a veces impide que se llame a usb_rx_callback_intf0()), wait_for_completion_interruptible() en send_packet() nunca regresa (es decir, tarea colgada). Como solución alternativa para tal situación, cambiar send_packet() para esperar la finalización con un tiempo de espera de 10 segundos.","source":"nvd"}],"published":"2025-12-16T13:43:20.525Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"519737af11c03590819a6eec2ad532cfdb87ea63","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"f58ab83b7b7133e6baefe03a46846c4f6ce45e2f","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"26f6a1dd5d81ad61a875a747698da6f27abf389b","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"667afd4681781f60a644cd0d2ee6c59cb1c36208","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"8231e80118463be5598daaf266c1c83650f1948b","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"0213e4175abbb9dfcbf7c197e3817d527f459ad5","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"f7f3ecb4934fff782fa9bb1cd16e2290c041b22d","status":"affected"},{"type":"git","introduced":"21677cfc562a27e099719d413287bc8d1d24deb7","fixed":"eecd203ada43a4693ce6fdd3a58ae10c7819252c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.35","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.35","status":"unaffected"},{"type":"semver","introduced":"5.4.302","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"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/519737af11c03590819a6eec2ad532cfdb87ea63","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f58ab83b7b7133e6baefe03a46846c4f6ce45e2f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26f6a1dd5d81ad61a875a747698da6f27abf389b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/667afd4681781f60a644cd0d2ee6c59cb1c36208","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8231e80118463be5598daaf266c1c83650f1948b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0213e4175abbb9dfcbf7c197e3817d527f459ad5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f7f3ecb4934fff782fa9bb1cd16e2290c041b22d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eecd203ada43a4693ce6fdd3a58ae10c7819252c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68194","url":"https://www.cve.org/CVERecord?id=CVE-2025-68194","licence":"CVE Terms of Use","modified":"2026-05-11T21:48:28.934Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68194","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68194","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.488Z","epss":{"score":0.00225,"percentile":0.14036,"date":"2026-12-01T12:00:22.000Z"}}