5.5medium
Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag syzbot is reporting hung task at __input_unregister_device() [1], for iforce_close() waiting at wait_event_interruptible() with dev->mutex held is blocking input_disconnect_device() from __input_unregister_device(). It seems that the cause is simply that commit c2b27ef672992a20 ("Input: iforce - wait for command completion when closing the device") forgot to call wake_up() after clear_bit(). Fix this problem by introducing a helper that calls clear_bit() followed by wake_up_all().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c2b27ef672992a206e5b221b8676972dd840ffa5 before d186c65599bff0222da37b9215784ddfe39f9e1b, from c2b27ef672992a206e5b221b8676972dd840ffa5 before b271090eea3899399e2adcf79c9c95367d472b03, from c2b27ef672992a206e5b221b8676972dd840ffa5 before df1b53bc799d58f79701c465505a206c72ad4ab8, from c2b27ef672992a206e5b221b8676972dd840ffa5 before b533b9d3a0d1327cbb31c201dc8dbbf98c8bfe3c, from c2b27ef672992a206e5b221b8676972dd840ffa5 before 98e01215708b6d416345465c09dce2bd4868c67a, 2.6.33 Not affected: before 2.6.33, from 5.4.213 up to 5.4.*, from 5.10.142 up to 5.10.*, from 5.15.66 up to 5.15.*, from 5.19.8 up to 5.19.*, from 6.0 up to * | CVE List |
| linux linux_kernel | from 2.6.34 before 5.4.213, from 5.5 before 5.10.142, from 5.11 before 5.15.66, from 5.16 before 5.19.8, 2.6.33, 6.0 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag syzbot is reporting hung task at __input_unregister_device() [1], for iforce_close() waiting at wait_event_interruptible() with dev->mutex held is blocking input_disconnect_device() from __input_unregister_device(). It seems that the cause is simply that commit c2b27ef672992a20 ("Input: iforce - wait for command completion when closing the device") forgot to call wake_up() after clear_bit(). Fix this problem by introducing a helper that calls clear_bit() followed by wake_up_all().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Entrada: iforce - reactivar tras borrar el indicador IFORCE_XMIT_RUNNING. syzbot informa que la tarea está bloqueada en __input_unregister_device() [1], ya que iforce_close() espera en wait_event_interruptible() con dev->mutex retenido, lo que bloquea input_disconnect_device() desde __input_unregister_device(). Parece que la causa es simplemente que el commit c2b27ef672992a20 ("Entrada: iforce - esperar a que se complete el comando al cerrar el dispositivo") olvidó llamar a wake_up() después de clear_bit(). Se soluciona este problema mediante un asistente que llame a clear_bit() seguido de wake_up_all().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49954 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49954 changed 2026-06-17 | Public domain |