{"id":"CVE-2024-26933","aliases":["CVE-2024-26933"],"related":[],"kind":"vulnerability","state":"published","title":"USB: core: Fix deadlock in port \"disable\" sysfs attribute","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: core: Fix deadlock in port \"disable\" sysfs attribute\n\nThe show and store callback routines for the \"disable\" sysfs attribute\nfile in port.c acquire the device lock for the port's parent hub\ndevice.  This can cause problems if another process has locked the hub\nto remove it or change its configuration:\n\n\tRemoving the hub or changing its configuration requires the\n\thub interface to be removed, which requires the port device\n\tto be removed, and device_del() waits until all outstanding\n\tsysfs attribute callbacks for the ports have returned.  The\n\tlock can't be released until then.\n\n\tBut the disable_show() or disable_store() routine can't return\n\tuntil after it has acquired the lock.\n\nThe resulting deadlock can be avoided by calling\nsysfs_break_active_protection().  This will cause the sysfs core not\nto wait for the attribute's callback routine to return, allowing the\nremoval to proceed.  The disadvantage is that after making this call,\nthere is no guarantee that the hub structure won't be deallocated at\nany moment.  To prevent this, we have to acquire a reference to it\nfirst by calling hub_get().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: core: Fix deadlock in port \"disable\" sysfs attribute\n\nThe show and store callback routines for the \"disable\" sysfs attribute\nfile in port.c acquire the device lock for the port's parent hub\ndevice.  This can cause problems if another process has locked the hub\nto remove it or change its configuration:\n\n\tRemoving the hub or changing its configuration requires the\n\thub interface to be removed, which requires the port device\n\tto be removed, and device_del() waits until all outstanding\n\tsysfs attribute callbacks for the ports have returned.  The\n\tlock can't be released until then.\n\n\tBut the disable_show() or disable_store() routine can't return\n\tuntil after it has acquired the lock.\n\nThe resulting deadlock can be avoided by calling\nsysfs_break_active_protection().  This will cause the sysfs core not\nto wait for the attribute's callback routine to return, allowing the\nremoval to proceed.  The disadvantage is that after making this call,\nthere is no guarantee that the hub structure won't be deallocated at\nany moment.  To prevent this, we have to acquire a reference to it\nfirst by calling hub_get().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: USB: core: corrige el punto muerto en el atributo sysfs \"disable\" del puerto. Las rutinas de devolución de llamada para mostrar y almacenar para el archivo del atributo sysfs \"disable\" en port.c adquieren el bloqueo del dispositivo para el puerto. dispositivo central principal. Esto puede causar problemas si otro proceso ha bloqueado el concentrador para eliminarlo o cambiar su configuración: Quitar el concentrador o cambiar su configuración requiere que se elimine la interfaz del concentrador, lo que requiere que se elimine el dispositivo del puerto, y device_del() espera hasta que todo Se han devuelto devoluciones de llamadas de atributos sysfs pendientes para los puertos. El bloqueo no podrá desbloquearse hasta entonces. Pero la rutina enable_show() o enable_store() no puede regresar hasta que haya adquirido el bloqueo. El punto muerto resultante se puede evitar llamando a sysfs_break_active_protection(). Esto hará que el núcleo de sysfs no espere a que regrese la rutina de devolución de llamada del atributo, lo que permitirá que continúe la eliminación. La desventaja es que después de realizar esta llamada, no hay garantía de que la estructura del centro no se desasignará en ningún momento. Para evitar esto, primero debemos adquirir una referencia llamando a hub_get().","source":"nvd"}],"published":"2024-05-01T05:17:23.289Z","modified":"2026-06-17T07:18:43.610Z","severity":{"scorer":"NVD","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":"NVD","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":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"f061f43d7418cb62b8d073e221ec75d3f5b89e17","fixed":"9dac54f08198147f5ec0ec52fcf1bc8ac899ac05","status":"affected"},{"type":"git","introduced":"f061f43d7418cb62b8d073e221ec75d3f5b89e17","fixed":"f51849833705dea5b4f9b0c8de714dd87bd6c95c","status":"affected"},{"type":"git","introduced":"f061f43d7418cb62b8d073e221ec75d3f5b89e17","fixed":"4facc9421117ba9d8148c73771b213887fec77f7","status":"affected"},{"type":"git","introduced":"f061f43d7418cb62b8d073e221ec75d3f5b89e17","fixed":"73d1589b91f2099e5f6534a8497b7c6b527e064e","status":"affected"},{"type":"git","introduced":"f061f43d7418cb62b8d073e221ec75d3f5b89e17","fixed":"f4d1960764d8a70318b02f15203a1be2b2554ca1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.84","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.24","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.12","lastAffected":"6.7.*","status":"unaffected"},{"type":"semver","introduced":"6.8.3","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","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":"6.0","fixed":"6.1.84"},{"status":"affected","introduced":"6.2","fixed":"6.6.24"},{"status":"affected","introduced":"6.7","fixed":"6.7.12"},{"status":"affected","introduced":"6.8","fixed":"6.8.3"},{"status":"affected","version":"6.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9dac54f08198147f5ec0ec52fcf1bc8ac899ac05","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f51849833705dea5b4f9b0c8de714dd87bd6c95c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4facc9421117ba9d8148c73771b213887fec77f7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/73d1589b91f2099e5f6534a8497b7c6b527e064e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4d1960764d8a70318b02f15203a1be2b2554ca1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:45:52.195Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26933","url":"https://www.cve.org/CVERecord?id=CVE-2024-26933","licence":"CVE Terms of Use","modified":"2026-05-11T20:07:10.785Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26933","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26933","licence":"Public domain","modified":"2026-06-17T07:18:43.610Z"}],"updatedAt":"2026-11-25T22:58:39.721Z","epss":{"score":0.00177,"percentile":0.07563,"date":"2026-12-01T12:00:22.000Z"}}