{"id":"CVE-2025-39685","aliases":["CVE-2025-39685"],"related":[],"kind":"vulnerability","state":"published","title":"comedi: pcl726: Prevent invalid irq number","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: pcl726: Prevent invalid irq number\n\nThe reproducer passed in an irq number(0x80008000) that was too large,\nwhich triggered the oob.\n\nAdded an interrupt number check to prevent users from passing in an irq\nnumber that was too large.\n\nIf `it->options[1]` is 31, then `1 << it->options[1]` is still invalid\nbecause it shifts a 1-bit into the sign bit (which is UB in C).\nPossible solutions include reducing the upper bound on the\n`it->options[1]` value to 30 or lower, or using `1U << it->options[1]`.\n\nThe old code would just not attempt to request the IRQ if the\n`options[1]` value were invalid.  And it would still configure the\ndevice without interrupts even if the call to `request_irq` returned an\nerror.  So it would be better to combine this test with the test below.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: pcl726: Prevent invalid irq number\n\nThe reproducer passed in an irq number(0x80008000) that was too large,\nwhich triggered the oob.\n\nAdded an interrupt number check to prevent users from passing in an irq\nnumber that was too large.\n\nIf `it->options[1]` is 31, then `1 << it->options[1]` is still invalid\nbecause it shifts a 1-bit into the sign bit (which is UB in C).\nPossible solutions include reducing the upper bound on the\n`it->options[1]` value to 30 or lower, or using `1U << it->options[1]`.\n\nThe old code would just not attempt to request the IRQ if the\n`options[1]` value were invalid.  And it would still configure the\ndevice without interrupts even if the call to `request_irq` returned an\nerror.  So it would be better to combine this test with the test below.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncomedi: pcl726: Prevenir número de irq inválido\n\nEl reproductor pasó un número de irq (0x80008000) que era demasiado grande, lo que activó el oob.\n\nSe añadió una comprobación del número de interrupción para evitar que los usuarios pasen un número de irq que sea demasiado grande.\n\nSi “it->options[1]” es 31, entonces “1 << it->options[1]” sigue siendo inválido porque desplaza un bit 1 al bit de signo (lo cual es UB en C). Las posibles soluciones incluyen reducir el límite superior del valor de “it->options[1]” a 30 o menos, o usar “1U << it->options[1]”.\n\nEl código antiguo simplemente no intentaría solicitar la IRQ si el valor de “options[1]” fuera inválido. Y aún así configuraría el dispositivo sin interrupciones incluso si la llamada a “request_irq” devolviera un error. Así que sería mejor combinar esta prueba con la prueba de abajo.","source":"nvd"}],"published":"2025-09-05T17:20:51.954Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"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:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"fff46207245cd9e39c05b638afaee2478e64914b","fixed":"bab220b0bb5af652007e278e8e8357f952b0e1ea","status":"affected"},{"type":"git","introduced":"fff46207245cd9e39c05b638afaee2478e64914b","fixed":"5a33d07c94ba91306093e823112a7aa9727549f6","status":"affected"},{"type":"git","introduced":"fff46207245cd9e39c05b638afaee2478e64914b","fixed":"0eb4ed2aa261dee228f1668dbfa6d87353e8162d","status":"affected"},{"type":"git","introduced":"fff46207245cd9e39c05b638afaee2478e64914b","fixed":"a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6","status":"affected"},{"type":"git","introduced":"fff46207245cd9e39c05b638afaee2478e64914b","fixed":"d8992c9a01f81128f36acb7c5755530e21fcd059","status":"affected"},{"type":"git","introduced":"fff46207245cd9e39c05b638afaee2478e64914b","fixed":"96cb948408b3adb69df7e451ba7da9d21f814d00","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.13","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.44","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.4","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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":"3.13","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.44"},{"status":"affected","introduced":"6.13","fixed":"6.16.4"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bab220b0bb5af652007e278e8e8357f952b0e1ea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a33d07c94ba91306093e823112a7aa9727549f6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0eb4ed2aa261dee228f1668dbfa6d87353e8162d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8992c9a01f81128f36acb7c5755530e21fcd059","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96cb948408b3adb69df7e451ba7da9d21f814d00","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39685","url":"https://www.cve.org/CVERecord?id=CVE-2025-39685","licence":"CVE Terms of Use","modified":"2026-05-12T12:06:12.481Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39685","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39685","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.262Z","epss":{"score":0.00182,"percentile":0.08169,"date":"2026-12-01T12:00:22.000Z"}}