In the Linux kernel, the following vulnerability has been resolved: comedi: fix divide-by-zero in comedibufmunge() The comedibufmunge() function performs a modulo operation async->munge_chan %= async->cmd.chanlist_len without first checking if chanlistlen is zero. If a user program submits a command with chanlistlen set to zero, this causes a divide-by-zero error when the device processes data in the interrupt handler path. Add a check for zero chanlistlen at the beginning of the function, similar to the existing checks for !map and CMDFRAWDATA flag. When chanlistlen is zero, update mungecount and return early, indicating the data was handled without munging. This prevents potential kernel panics from malformed user commands.