{"id":"CVE-2026-43324","aliases":["CVE-2026-43324"],"related":[],"kind":"vulnerability","state":"published","title":"USB: dummy-hcd: Fix interrupt synchronization error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: dummy-hcd: Fix interrupt synchronization error\n\nThis fixes an error in synchronization in the dummy-hcd driver.  The\nerror has a somewhat involved history.  The synchronization mechanism\nwas introduced by commit 7dbd8f4cabd9 (\"USB: dummy-hcd: Fix erroneous\nsynchronization change\"), which added an emulated \"interrupts enabled\"\nflag together with code emulating synchronize_irq() (it waits until\nall current handler callbacks have returned).\n\nBut the emulated interrupt-disable occurred too late, after the driver\ncontaining the handler callback routines had been told that it was\nunbound and no more callbacks would occur.  Commit 4a5d797a9f9c (\"usb:\ngadget: dummy_hcd: fix gpf in gadget_setup\") tried to fix this by\nmoving the synchronize_irq() emulation code from dummy_stop() to\ndummy_pullup(), which runs before the unbind callback.\n\nThere still were races, though, because the emulated interrupt-disable\nstill occurred too late.  It couldn't be moved to dummy_pullup(),\nbecause that routine can be called for reasons other than an impending\nunbind.  Therefore commits 7dc0c55e9f30 (\"USB: UDC core: Add\nudc_async_callbacks gadget op\") and 04145a03db9d (\"USB: UDC: Implement\nudc_async_callbacks in dummy-hcd\") added an API allowing the UDC core\nto tell dummy-hcd exactly when emulated interrupts and their callbacks\nshould be disabled.\n\nThat brings us to the current state of things, which is still wrong\nbecause the emulated synchronize_irq() occurs before the emulated\ninterrupt-disable!  That's no good, beause it means that more emulated\ninterrupts can occur after the synchronize_irq() emulation has run,\nleading to the possibility that a callback handler may be running when\nthe gadget driver is unbound.\n\nTo fix this, we have to move the synchronize_irq() emulation code yet\nagain, to the dummy_udc_async_callbacks() routine, which takes care of\nenabling and disabling emulated interrupt requests.  The\nsynchronization will now run immediately after emulated interrupts are\ndisabled, which is where it belongs.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: dummy-hcd: Fix interrupt synchronization error\n\nThis fixes an error in synchronization in the dummy-hcd driver.  The\nerror has a somewhat involved history.  The synchronization mechanism\nwas introduced by commit 7dbd8f4cabd9 (\"USB: dummy-hcd: Fix erroneous\nsynchronization change\"), which added an emulated \"interrupts enabled\"\nflag together with code emulating synchronize_irq() (it waits until\nall current handler callbacks have returned).\n\nBut the emulated interrupt-disable occurred too late, after the driver\ncontaining the handler callback routines had been told that it was\nunbound and no more callbacks would occur.  Commit 4a5d797a9f9c (\"usb:\ngadget: dummy_hcd: fix gpf in gadget_setup\") tried to fix this by\nmoving the synchronize_irq() emulation code from dummy_stop() to\ndummy_pullup(), which runs before the unbind callback.\n\nThere still were races, though, because the emulated interrupt-disable\nstill occurred too late.  It couldn't be moved to dummy_pullup(),\nbecause that routine can be called for reasons other than an impending\nunbind.  Therefore commits 7dc0c55e9f30 (\"USB: UDC core: Add\nudc_async_callbacks gadget op\") and 04145a03db9d (\"USB: UDC: Implement\nudc_async_callbacks in dummy-hcd\") added an API allowing the UDC core\nto tell dummy-hcd exactly when emulated interrupts and their callbacks\nshould be disabled.\n\nThat brings us to the current state of things, which is still wrong\nbecause the emulated synchronize_irq() occurs before the emulated\ninterrupt-disable!  That's no good, beause it means that more emulated\ninterrupts can occur after the synchronize_irq() emulation has run,\nleading to the possibility that a callback handler may be running when\nthe gadget driver is unbound.\n\nTo fix this, we have to move the synchronize_irq() emulation code yet\nagain, to the dummy_udc_async_callbacks() routine, which takes care of\nenabling and disabling emulated interrupt requests.  The\nsynchronization will now run immediately after emulated interrupts are\ndisabled, which is where it belongs.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nUSB: dummy-hcd: Corrección de error de sincronización de interrupciones\n\nEsto corrige un error de sincronización en el controlador dummy-hcd. El error tiene una historia un tanto intrincada. El mecanismo de sincronización fue introducido por el commit 7dbd8f4cabd9 (’USB: dummy-hcd: Corrección de cambio de sincronización erróneo’), que añadió una bandera emulada de ’interrupciones habilitadas’ junto con código que emula synchronize_irq() (espera hasta que todas las devoluciones de llamada del gestor actuales hayan regresado).\n\nPero la deshabilitación de interrupciones emulada ocurrió demasiado tarde, después de que al controlador que contenía las rutinas de devolución de llamada del gestor se le había informado que estaba desvinculado y que no ocurrirían más devoluciones de llamada. El commit 4a5d797a9f9c (’usb: gadget: dummy_hcd: corrección de gpf en gadget_setup’) intentó corregir esto moviendo el código de emulación de synchronize_irq() de dummy_stop() a dummy_pullup(), que se ejecuta antes de la devolución de llamada de desvinculación.\n\nSin embargo, aún había condiciones de carrera, porque la deshabilitación de interrupciones emulada todavía ocurría demasiado tarde. No podía moverse a dummy_pullup(), porque esa rutina puede ser llamada por razones distintas a una desvinculación inminente. Por lo tanto, los commits 7dc0c55e9f30 (’USB: UDC core: Añadir operación de gadget udc_async_callbacks’) y 04145a03db9d (’USB: UDC: Implementar udc_async_callbacks en dummy-hcd’) añadieron una API permitiendo al núcleo UDC indicar a dummy-hcd exactamente cuándo las interrupciones emuladas y sus devoluciones de llamada deben ser deshabilitadas.\n\nEso nos lleva al estado actual de las cosas, que sigue siendo incorrecto porque el synchronize_irq() emulado ocurre antes de la deshabilitación de interrupciones emulada. Eso no es bueno, porque significa que pueden ocurrir más interrupciones emuladas después de que la emulación de synchronize_irq() se haya ejecutado, lo que lleva a la posibilidad de que un gestor de devolución de llamada esté ejecutándose cuando el controlador del gadget está desvinculado.\n\nPara corregir esto, tenemos que mover el código de emulación de synchronize_irq() una vez más, a la rutina dummy_udc_async_callbacks(), que se encarga de habilitar y deshabilitar las solicitudes de interrupción emuladas. La sincronización ahora se ejecutará inmediatamente después de que las interrupciones emuladas sean deshabilitadas, que es donde debe estar.","source":"nvd"}],"published":"2026-05-08T13:31:08.850Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"d847f375b1bcea713143bc02720d13d2d01b012a","status":"affected"},{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"cbf7df5e5d27cd5bea92ee9a75a4b28dbcc718d4","status":"affected"},{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"5aa776c8615bea3b1eaeec87b0788375800ead4f","status":"affected"},{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"94d4fab1dd9e64f45449bcc7d6a5acf796b13015","status":"affected"},{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"5687a09776069bd915560021c9728ca528440128","status":"affected"},{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"8bcd80219d8e10e660bf29b20e41bb8beb4e4cb7","status":"affected"},{"type":"git","introduced":"04145a03db9d78469e0817ab3a767c76c0fb0947","fixed":"2ca9e46f8f1f5a297eb0ac83f79d35d5b3a02541","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.14","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d847f375b1bcea713143bc02720d13d2d01b012a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cbf7df5e5d27cd5bea92ee9a75a4b28dbcc718d4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5aa776c8615bea3b1eaeec87b0788375800ead4f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94d4fab1dd9e64f45449bcc7d6a5acf796b13015","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5687a09776069bd915560021c9728ca528440128","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8bcd80219d8e10e660bf29b20e41bb8beb4e4cb7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ca9e46f8f1f5a297eb0ac83f79d35d5b3a02541","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43324","url":"https://www.cve.org/CVERecord?id=CVE-2026-43324","licence":"CVE Terms of Use","modified":"2026-08-05T12:27:14.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43324","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43324","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.992Z","epss":{"score":0.0013,"percentile":0.02813,"date":"2026-12-01T12:00:22.000Z"}}