Divide-by-Zero Vulnerability in Linux Kernel Affecting Comedi Driver
CVE-2025-40106 
What is CVE-2025-40106?
A divide-by-zero vulnerability exists in the Linux kernel's comedi driver due to a missing check for zero in the chanlist_len parameter. When a user command sets chanlist_len to zero, the comedi_buf_munge() function attempts a modulo operation that leads to a divide-by-zero error in the interrupt handler. This oversight can result in kernel panics, potentially affecting system stability. The vulnerability has been addressed by implementing a check for zero chanlist_len, allowing the function to handle this edge case without proceeding to erroneous data processing.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 4ffea48c69cb2b96a281cb7e5e42d706996631db
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8f3e4cd9be4b47246ea73ce5e3e0fa2f57f0d10c
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2670932f2465793fea1ef073e40883e8390fa4d9