CVE-2024-27001
JSON

5.5medium

comedi: vmk80xx: fix incomplete endpoint checking

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.28% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: comedi: vmk80xx: fix incomplete endpoint checking While vmk80xx does have endpoint checking implemented, some things can fall through the cracks. Depending on the hardware model, URBs can have either bulk or interrupt type, and current version of vmk80xx_find_usb_endpoints() function does not take that fully into account. While this warning does not seem to be too harmful, at the very least it will crash systems with 'panic_on_warn' set on them. Fix the issue found by Syzkaller [1] by somewhat simplifying the endpoint checking process with usb_find_common_endpoints() and ensuring that only expected endpoint types are present. This patch has not been tested on real hardware. [1] Syzkaller report: usb 1-1: BOGUS urb xfer, pipe 1 != type 3 WARNING: CPU: 0 PID: 781 at drivers/usb/core/urb.c:504 usb_submit_urb+0xc4e/0x18c0 drivers/usb/core/urb.c:503 ... Call Trace: <TASK> usb_start_wait_urb+0x113/0x520 drivers/usb/core/message.c:59 vmk80xx_reset_device drivers/comedi/drivers/vmk80xx.c:227 [inline] vmk80xx_auto_attach+0xa1c/0x1a40 drivers/comedi/drivers/vmk80xx.c:818 comedi_auto_config+0x238/0x380 drivers/comedi/drivers.c:1067 usb_probe_interface+0x5cd/0xb00 drivers/usb/core/driver.c:399 ... Similar issue also found by Syzkaller:

Affected

Product or packageVersionsReported by
Linux Linuxfrom 49253d542cc0f5f771dc254d248162a2a666649d before 3a63ae0348d990e137cca04eced5b08379969ea9, from 49253d542cc0f5f771dc254d248162a2a666649d before a3b8ae7e9297dd453f2977b011c5bc75eb20e71b, from 49253d542cc0f5f771dc254d248162a2a666649d before f15370e315976198f338b41611f37ce82af6cf54, from 49253d542cc0f5f771dc254d248162a2a666649d before b0b268eeb087e324ef3ea71f8e6cabd07630517f, from 49253d542cc0f5f771dc254d248162a2a666649d before ac882d6b21bffecb57bcc4486701239eef5aa67b, from 49253d542cc0f5f771dc254d248162a2a666649d before 59f33af9796160f851641d960bd93937f282c696, from 49253d542cc0f5f771dc254d248162a2a666649d before 6ec3514a7d35ad9cfab600187612c29f669069d2, from 49253d542cc0f5f771dc254d248162a2a666649d before d1718530e3f640b7d5f0050e725216eab57a85d8 and 1 more
Not affected: before 3.9, from 4.19.313 up to 4.19.*, from 5.4.275 up to 5.4.*, from 5.10.216 up to 5.10.*, from 5.15.157 up to 5.15.*, from 6.1.88 up to 6.1.*
CVE List
linux linux_kernelfrom 3.9 before 4.19.313, from 4.20 before 5.4.275, from 5.5 before 5.10.216, from 5.11 before 5.15.157, from 5.16 before 6.1.88, from 6.2 before 6.6.29, from 6.7 before 6.8.8, 6.9NVD
debian debian_linux10.0NVD
fedoraproject fedora38, 39, 40NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: comedi: vmk80xx: fix incomplete endpoint checking While vmk80xx does have endpoint checking implemented, some things can fall through the cracks. Depending on the hardware model, URBs can have either bulk or interrupt type, and current version of vmk80xx_find_usb_endpoints() function does not take that fully into account. While this warning does not seem to be too harmful, at the very least it will crash systems with 'panic_on_warn' set on them. Fix the issue found by Syzkaller [1] by somewhat simplifying the endpoint checking process with usb_find_common_endpoints() and ensuring that only expected endpoint types are present. This patch has not been tested on real hardware. [1] Syzkaller report: usb 1-1: BOGUS urb xfer, pipe 1 != type 3 WARNING: CPU: 0 PID: 781 at drivers/usb/core/urb.c:504 usb_submit_urb+0xc4e/0x18c0 drivers/usb/core/urb.c:503 ... Call Trace: <TASK> usb_start_wait_urb+0x113/0x520 drivers/usb/core/message.c:59 vmk80xx_reset_device drivers/comedi/drivers/vmk80xx.c:227 [inline] vmk80xx_auto_attach+0xa1c/0x1a40 drivers/comedi/drivers/vmk80xx.c:818 comedi_auto_config+0x238/0x380 drivers/comedi/drivers.c:1067 usb_probe_interface+0x5cd/0xb00 drivers/usb/core/driver.c:399 ... Similar issue also found by Syzkaller:

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: comedi: vmk80xx: corrige la verificación de endpoints incompleta Si bien vmk80xx tiene implementada la verificación de endpoints, algunas cosas pueden pasar desapercibidas. Dependiendo del modelo de hardware, las URB pueden tener un tipo masivo o de interrupción, y la versión actual de la función vmk80xx_find_usb_endpoints() no lo tiene completamente en cuenta. Si bien esta advertencia no parece ser demasiado dañina, al menos bloqueará los sistemas que tengan configurado 'panic_on_warn'. Solucione el problema encontrado por Syzkaller [1] simplificando un poco el proceso de verificación de endpoints con usb_find_common_endpoints() y asegurándose de que solo estén presentes los tipos de endpoints esperados. Este parche no ha sido probado en hardware real. [1] Informe Syzkaller: usb 1-1: BOGUS urb xfer, tubería 1! = tipo 3 ADVERTENCIA: CPU: 0 PID: 781 en drivers/usb/core/urb.c:504 usb_submit_urb+0xc4e/0x18c0 drivers/usb/ core/urb.c:503... Seguimiento de llamadas: usb_start_wait_urb+0x113/0x520 drivers/usb/core/message.c:59 vmk80xx_reset_device drivers/comedi/drivers/vmk80xx.c:227 [en línea] vmk80xx_auto_attach+0xa1c /0x1a40 drivers/comedi/drivers/vmk80xx.c:818 comedi_auto_config+0x238/0x380 drivers/comedi/drivers.c:1067 usb_probe_interface+0x5cd/0xb00 drivers/usb/core/driver.c:399 ... También se encontró un problema similar por Syzkaller:

References

https://git.kernel.org/stable/c/3a63ae0348d990e137cca04eced5b08379969ea9patch
https://git.kernel.org/stable/c/a3b8ae7e9297dd453f2977b011c5bc75eb20e71bpatch
https://git.kernel.org/stable/c/f15370e315976198f338b41611f37ce82af6cf54patch
https://git.kernel.org/stable/c/b0b268eeb087e324ef3ea71f8e6cabd07630517fpatch
https://git.kernel.org/stable/c/ac882d6b21bffecb57bcc4486701239eef5aa67bpatch
https://git.kernel.org/stable/c/59f33af9796160f851641d960bd93937f282c696patch
https://git.kernel.org/stable/c/6ec3514a7d35ad9cfab600187612c29f669069d2patch
https://git.kernel.org/stable/c/d1718530e3f640b7d5f0050e725216eab57a85d8patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlmailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/mailing-list, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-27001 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-27001 changed 2026-06-17Public domain