{"id":"CVE-2026-31751","aliases":["CVE-2026-31751"],"related":[],"kind":"vulnerability","state":"published","title":"comedi: dt2815: add hardware detection to prevent crash","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: dt2815: add hardware detection to prevent crash\n\nThe dt2815 driver crashes when attached to I/O ports without actual\nhardware present. This occurs because syzkaller or users can attach\nthe driver to arbitrary I/O addresses via COMEDI_DEVCONFIG ioctl.\n\nWhen no hardware exists at the specified port, inb() operations return\n0xff (floating bus), but outb() operations can trigger page faults due\nto undefined behavior, especially under race conditions:\n\n  BUG: unable to handle page fault for address: 000000007fffff90\n  #PF: supervisor write access in kernel mode\n  #PF: error_code(0x0002) - not-present page\n  RIP: 0010:dt2815_attach+0x6e0/0x1110\n\nAdd hardware detection by reading the status register before attempting\nany write operations. If the read returns 0xff, assume no hardware is\npresent and fail the attach with -ENODEV. This prevents crashes from\noutb() operations on non-existent hardware.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: dt2815: add hardware detection to prevent crash\n\nThe dt2815 driver crashes when attached to I/O ports without actual\nhardware present. This occurs because syzkaller or users can attach\nthe driver to arbitrary I/O addresses via COMEDI_DEVCONFIG ioctl.\n\nWhen no hardware exists at the specified port, inb() operations return\n0xff (floating bus), but outb() operations can trigger page faults due\nto undefined behavior, especially under race conditions:\n\n  BUG: unable to handle page fault for address: 000000007fffff90\n  #PF: supervisor write access in kernel mode\n  #PF: error_code(0x0002) - not-present page\n  RIP: 0010:dt2815_attach+0x6e0/0x1110\n\nAdd hardware detection by reading the status register before attempting\nany write operations. If the read returns 0xff, assume no hardware is\npresent and fail the attach with -ENODEV. This prevents crashes from\noutb() operations on non-existent hardware.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncomedi: dt2815: añadir detección de hardware para prevenir un fallo\n\nEl controlador dt2815 falla cuando se adjunta a puertos de E/S sin hardware real presente. Esto ocurre porque syzkaller o los usuarios pueden adjuntar el controlador a direcciones de E/S arbitrarias a través de COMEDI_DEVCONFIG ioctl.\n\nCuando no existe hardware en el puerto especificado, las operaciones inb() devuelven 0xff (bus flotante), pero las operaciones outb() pueden desencadenar fallos de página debido a un comportamiento indefinido, especialmente bajo condiciones de carrera:\n\n  BUG: incapaz de manejar fallo de página para la dirección: 000000007fffff90\n  #PF: acceso de escritura de supervisor en modo kernel\n  #PF: código_de_error(0x 0002) - página no presente\n  RIP: 0010:dt2815_attach+0x6e0/0x 1110\n\nAñadir detección de hardware leyendo el registro de estado antes de intentar cualquier operación de escritura. Si la lectura devuelve 0xff, asumir que no hay hardware presente y fallar la adjunción con -ENODEV. Esto previene fallos de operaciones outb() en hardware no existente.","source":"nvd"}],"published":"2026-05-01T14:14:43.551Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"8d63161837f1bf8810dbcd2a583c2bbf5ca6d733","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"d2a786efdb9971f2a647724625da5bbecc994dc9","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"d5d9df8b08d68d083ac57abc2c887dfb1f31af63","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"65c528fbeddd88478c210052f6c7b21be4973156","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"34c8b3a91bdfbe4573650b4cd750ef639101fdc5","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"34b13250c618d7441508c6ef369144aa8a9b9bfa","status":"affected"},{"type":"git","introduced":"d6a929b7608ae157cef86d00cc580d1038f0b985","fixed":"93853512f565e625df2397f0d8050d6aafd7c3ad","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.30","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.30","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","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":"2.6.30","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","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"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8d63161837f1bf8810dbcd2a583c2bbf5ca6d733","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2a786efdb9971f2a647724625da5bbecc994dc9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0dcf33994b8dcf3db36530fb7e2cf9f89e5cbac3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5d9df8b08d68d083ac57abc2c887dfb1f31af63","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65c528fbeddd88478c210052f6c7b21be4973156","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34c8b3a91bdfbe4573650b4cd750ef639101fdc5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34b13250c618d7441508c6ef369144aa8a9b9bfa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93853512f565e625df2397f0d8050d6aafd7c3ad","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31751","url":"https://www.cve.org/CVERecord?id=CVE-2026-31751","licence":"CVE Terms of Use","modified":"2026-05-11T22:15:06.157Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31751","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31751","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.369Z","epss":{"score":0.00093,"percentile":0.00546,"date":"2026-12-01T12:00:22.000Z"}}