7.1high
comedi: pcl726: Prevent invalid irq number
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: comedi: pcl726: Prevent invalid irq number The reproducer passed in an irq number(0x80008000) that was too large, which triggered the oob. Added an interrupt number check to prevent users from passing in an irq number that was too large. If `it->options[1]` is 31, then `1 << it->options[1]` is still invalid because it shifts a 1-bit into the sign bit (which is UB in C). Possible solutions include reducing the upper bound on the `it->options[1]` value to 30 or lower, or using `1U << it->options[1]`. The old code would just not attempt to request the IRQ if the `options[1]` value were invalid. And it would still configure the device without interrupts even if the call to `request_irq` returned an error. So it would be better to combine this test with the test below.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fff46207245cd9e39c05b638afaee2478e64914b before bab220b0bb5af652007e278e8e8357f952b0e1ea, from fff46207245cd9e39c05b638afaee2478e64914b before 5a33d07c94ba91306093e823112a7aa9727549f6, from fff46207245cd9e39c05b638afaee2478e64914b before 0eb4ed2aa261dee228f1668dbfa6d87353e8162d, from fff46207245cd9e39c05b638afaee2478e64914b before a3cfcd0c78c80ca7cd80372dc28f77d01be57bf6, from fff46207245cd9e39c05b638afaee2478e64914b before d8992c9a01f81128f36acb7c5755530e21fcd059, from fff46207245cd9e39c05b638afaee2478e64914b before 96cb948408b3adb69df7e451ba7da9d21f814d00, 3.13 Not affected: before 3.13, from 5.15.190 up to 5.15.*, from 6.1.149 up to 6.1.*, from 6.6.103 up to 6.6.*, from 6.12.44 up to 6.12.*, from 6.16.4 up to 6.16.* | CVE List |
| linux linux_kernel | from 3.13 before 5.15.190, from 5.16 before 6.1.149, from 6.2 before 6.6.103, from 6.7 before 6.12.44, from 6.13 before 6.16.4, 6.17 | NVD |
| debian debian_linux | 11.0 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: comedi: pcl726: Prevent invalid irq number The reproducer passed in an irq number(0x80008000) that was too large, which triggered the oob. Added an interrupt number check to prevent users from passing in an irq number that was too large. If `it->options[1]` is 31, then `1 << it->options[1]` is still invalid because it shifts a 1-bit into the sign bit (which is UB in C). Possible solutions include reducing the upper bound on the `it->options[1]` value to 30 or lower, or using `1U << it->options[1]`. The old code would just not attempt to request the IRQ if the `options[1]` value were invalid. And it would still configure the device without interrupts even if the call to `request_irq` returned an error. So it would be better to combine this test with the test below.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: comedi: pcl726: Prevenir número de irq inválido El reproductor pasó un número de irq (0x80008000) que era demasiado grande, lo que activó el oob. Se 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. Si “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]”. El 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39685 changed 2026-05-12 | CVE Terms of Use |
| NVD | CVE-2025-39685 changed 2026-10-19 | Public domain |