{"id":"CVE-2026-74677","aliases":["CVE-2026-74677"],"related":[],"kind":"vulnerability","state":"published","title":"net: usb: ipheth: fix carrier_work UAF on disconnect","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: ipheth: fix carrier_work UAF on disconnect\n\nipheth_sndbulk_callback() re-arms the carrier-check work on any\nnon-zero URB status:\n\n\telse\n\t\tschedule_delayed_work(&dev->carrier_work, 0);\n\nNothing ties that to the interface being up, so the work can be armed\nagain after ipheth_close() has already drained it, and stay armed\nuntil the netdev whose private area embeds it is freed.\n\nOn unplug with a TX URB in flight, ipheth_disconnect() drains the work\nthrough unregister_netdev() -> ipheth_close() ->\ncancel_delayed_work_sync() and only then calls ipheth_kill_urbs().\nusb_kill_urb() completes the in-flight TX URB with -ENOENT, so\nipheth_sndbulk_callback() runs after the drain and re-arms\ncarrier_work.\n\nThe same completion also re-arms the work if the interface is only\nbrought down while a TX URB is in flight, and\nipheth_carrier_check_work() then keeps re-queueing itself once a\nsecond. unregister_netdev() does not call ipheth_close() for an\nalready-down interface, so nothing drains it on the later unplug\neither.\n\nIn both cases free_netdev() frees the netdev while carrier_work is\nstill pending, and ipheth_carrier_check_work() dereferences freed\nmemory.\n\nTie the work to the interface state instead of chasing the completion:\ndisable it in ipheth_close() and enable it in ipheth_open(), so a\nschedule_delayed_work() from the URB completion is a no-op whenever\nthe interface is not up. disable_delayed_work_sync() also waits for a\nrunning instance, so it fully replaces the cancel_delayed_work_sync()\nit takes the place of. The work starts out disabled in ipheth_probe()\nso the enable/disable counts balance from the first open.\n\nReproduced under KASAN on linux-next (next-20260731) with dummy_hcd and\nraw-gadget standing in for the device, driving the second path above (the\ninterface is already down, so unregister_netdev() does not call\nipheth_close()): 15 of 15 unpatched boots report a slab-use-after-free in\n__run_timers(), freed by ipheth_disconnect() and re-armed from\nipheth_sndbulk_callback() via queue_delayed_work_on(). The\nsame trigger on a kernel differing only by this patch reports 0 of 15,\nand the carrier check still functions across open/close cycles.\n\nThe reproducer needs an attached USB device that stops draining bulk OUT,\nplus a link down and unplug, driven as root. It is not a privilege\nboundary crossing and no exploit primitive was developed.\n\nFound by 0sec (https://0sec.ai).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: usb: ipheth: fix carrier_work UAF on disconnect\n\nipheth_sndbulk_callback() re-arms the carrier-check work on any\nnon-zero URB status:\n\n\telse\n\t\tschedule_delayed_work(&dev->carrier_work, 0);\n\nNothing ties that to the interface being up, so the work can be armed\nagain after ipheth_close() has already drained it, and stay armed\nuntil the netdev whose private area embeds it is freed.\n\nOn unplug with a TX URB in flight, ipheth_disconnect() drains the work\nthrough unregister_netdev() -> ipheth_close() ->\ncancel_delayed_work_sync() and only then calls ipheth_kill_urbs().\nusb_kill_urb() completes the in-flight TX URB with -ENOENT, so\nipheth_sndbulk_callback() runs after the drain and re-arms\ncarrier_work.\n\nThe same completion also re-arms the work if the interface is only\nbrought down while a TX URB is in flight, and\nipheth_carrier_check_work() then keeps re-queueing itself once a\nsecond. unregister_netdev() does not call ipheth_close() for an\nalready-down interface, so nothing drains it on the later unplug\neither.\n\nIn both cases free_netdev() frees the netdev while carrier_work is\nstill pending, and ipheth_carrier_check_work() dereferences freed\nmemory.\n\nTie the work to the interface state instead of chasing the completion:\ndisable it in ipheth_close() and enable it in ipheth_open(), so a\nschedule_delayed_work() from the URB completion is a no-op whenever\nthe interface is not up. disable_delayed_work_sync() also waits for a\nrunning instance, so it fully replaces the cancel_delayed_work_sync()\nit takes the place of. The work starts out disabled in ipheth_probe()\nso the enable/disable counts balance from the first open.\n\nReproduced under KASAN on linux-next (next-20260731) with dummy_hcd and\nraw-gadget standing in for the device, driving the second path above (the\ninterface is already down, so unregister_netdev() does not call\nipheth_close()): 15 of 15 unpatched boots report a slab-use-after-free in\n__run_timers(), freed by ipheth_disconnect() and re-armed from\nipheth_sndbulk_callback() via queue_delayed_work_on(). The\nsame trigger on a kernel differing only by this patch reports 0 of 15,\nand the carrier check still functions across open/close cycles.\n\nThe reproducer needs an attached USB device that stops draining bulk OUT,\nplus a link down and unplug, driven as root. It is not a privilege\nboundary crossing and no exploit primitive was developed.\n\nFound by 0sec (https://0sec.ai).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: usb: ipheth: corregir uso después de liberación de carrier_work al desconectar\n\nipheth_sndbulk_callback() re-arma el trabajo de verificación de portadora en cualquier estado URB distinto de cero:\n\n\telse\n\t\tschedule_delayed_work(&dev -> carrier_work, 0);\n\nNada vincula eso a que la interfaz esté activa, por lo que el trabajo puede ser re-armado de nuevo después de que ipheth_close() ya lo haya vaciado, y permanecer activado hasta que se libere el netdev cuya área privada lo incrusta.\n\nAl desconectar con un URB de TX en curso, ipheth_disconnect() vacía el trabajo a través de unregister_netdev()  ->  ipheth_close()  ->  cancel_delayed_work_sync() y solo entonces llama a ipheth_kill_urbs(). usb_kill_urb() completa el URB de TX en curso con -ENOENT, por lo que ipheth_sndbulk_callback() se ejecuta después del vaciado y re-arma carrier_work.\n\nLa misma finalización también re-arma el trabajo si la interfaz solo se desactiva mientras un URB de TX está en curso, e ipheth_carrier_check_work() luego sigue re-encolándose una vez por segundo. unregister_netdev() no llama a ipheth_close() para una interfaz ya inactiva, por lo que nada lo vacía en la desconexión posterior tampoco.\n\nEn ambos casos free_netdev() libera el netdev mientras carrier_work aún está pendiente, e ipheth_carrier_check_work() desreferencia memoria liberada.\n\nVincular el trabajo al estado de la interfaz en lugar de perseguir la finalización: desactivarlo en ipheth_close() y activarlo en ipheth_open(), para que un schedule_delayed_work() de la finalización del URB sea una operación nula siempre que la interfaz no esté activa. disable_delayed_work_sync() también espera una instancia en ejecución, por lo que reemplaza completamente a cancel_delayed_work_sync() al que sustituye. El trabajo comienza desactivado en ipheth_probe() para que los recuentos de activación/desactivación se equilibren desde la primera apertura.\n\nReproducido bajo KASAN en linux-next (next-20260731) con dummy_hcd y raw-gadget sustituyendo al dispositivo, impulsando la segunda ruta anterior (la interfaz ya está inactiva, por lo que unregister_netdev() no llama a ipheth_close()): 15 de 15 arranques sin parchear informan de un uso después de liberación de slab en __run_timers(), liberado por ipheth_disconnect() y re-armado desde ipheth_sndbulk_callback() a través de queue_delayed_work_on(). El mismo disparador en un kernel que difiere solo por este parche informa 0 de 15, y la verificación de portadora sigue funcionando a través de ciclos de apertura/cierre.\n\nEl reproductor necesita un dispositivo USB conectado que deja de vaciar bulk OUT, además de un enlace caído y una desconexión, ejecutado como root. No es un cruce de límites de privilegio y no se desarrolló ningún primitivo de exploit.\n\nEncontrado por 0sec (https://0sec.ai).","source":"nvd"}],"published":"2026-08-22T15:32:46.001Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bb1b40c7cb863f0800a6410c7dcb86cf3f28d3b1","fixed":"d07133fe1befae9a1e4c4c5e46ef0b73d2992020","status":"affected"},{"type":"git","introduced":"bb1b40c7cb863f0800a6410c7dcb86cf3f28d3b1","fixed":"2c7496124e94c7f9c3daa5c5b1fb563ca9d62c45","status":"affected"},{"type":"git","introduced":"bb1b40c7cb863f0800a6410c7dcb86cf3f28d3b1","fixed":"48303f3ae0fa6e102f3fc7dbf1688cc179131962","status":"affected"},{"type":"git","introduced":"bb1b40c7cb863f0800a6410c7dcb86cf3f28d3b1","fixed":"fde39b8a521780391fb4e5bda2c0aa4928947f12","status":"affected"},{"type":"git","version":"4f2df9fd07698bece3321fbf9e4b6dbcb9babccc","status":"affected"},{"type":"git","version":"ea7d6be58c2e6c1f426b48994bb22b2393c90963","status":"affected"},{"type":"git","version":"f5bca75dc46701f4c0d1dcbaae401233ae7ff06b","status":"affected"},{"type":"semver","introduced":"4.4.180","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.173","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.116","fixed":"4.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/d07133fe1befae9a1e4c4c5e46ef0b73d2992020","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c7496124e94c7f9c3daa5c5b1fb563ca9d62c45","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48303f3ae0fa6e102f3fc7dbf1688cc179131962","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fde39b8a521780391fb4e5bda2c0aa4928947f12","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74677","url":"https://www.cve.org/CVERecord?id=CVE-2026-74677","licence":"CVE Terms of Use","modified":"2026-08-22T15:32:46.001Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74677","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74677","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:34.930Z","epss":{"score":0.00168,"percentile":0.06373,"date":"2026-12-01T12:00:22.000Z"}}