comedi: fix divide-by-zero in comedi_buf_munge()
CVE-2025-40106 is fixed in 18 products on 1 platform, first by DEBIAN-CVE-2025-40106, released October 31, 2025. It is not reported as exploited. Patch Radar priority: Routine.
In the Linux kernel, the following vulnerability has been resolved: comedi: fix divide-by-zero in comedi_buf_munge() The comedi_buf_munge() function performs a modulo operation `async->munge_chan %= async->cmd.chanlist_len` without first checking if chanlist_len is zero. If a user program submits a command with chanlist_len 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 chanlist_len at the beginning of the function, similar to the existing checks for !map and CMDF_RAWDATA flag. When chanlist_len is zero, update munge_count and return early, indicating the data was handled without munging. This prevents potential kernel panics from malformed user commands.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| dtb-aarch64 · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-64kb · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-64kb · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-64kb · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-azure · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-azure · sles 15.7 | 6.4.0-150700.20.27.1 | SUSE-SU-2026:0472-1 | Feb 12, 2026 |
| kernel-azure · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-default · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-default · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-default · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-default-base · opensuse-leap 16.0 | 6.12.0-160000.26.1.160000.2.7 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-default-base · sles 15.7 | 6.4.0-150700.53.31.1.150700.17.21.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-default-base · sles 16.0 | 6.12.0-160000.26.1.160000.2.7 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-docs · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-docs · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-docs · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-kvmsmall · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-kvmsmall · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-livepatch-SLE15-SP7-RT_Update_9 · sles 15.7 | 1-150700.1.3.2 | SUSE-SU-2026:0587-1 | Feb 20, 2026 |
| kernel-livepatch-SLE15-SP7_Update_9 · sles 15.7 | 1-150700.15.3.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-obs-build · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-obs-build · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-obs-qa · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-obs-qa · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-rt · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-source · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-source · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-source · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-source-azure · sles 15.7 | 6.4.0-150700.20.27.1 | SUSE-SU-2026:0472-1 | Feb 12, 2026 |
| kernel-syms · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-syms · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-syms · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| kernel-syms-azure · sles 15.7 | 6.4.0-150700.20.27.1 | SUSE-SU-2026:0472-1 | Feb 12, 2026 |
| kernel-zfcpdump · opensuse-leap 16.0 | 6.12.0-160000.26.1 | OPENSUSE-SU-2026:20287-1 | Feb 27, 2026 |
| kernel-zfcpdump · sles 15.7 | 6.4.0-150700.53.31.1 | SUSE-SU-2026:0447-1 | Feb 11, 2026 |
| kernel-zfcpdump · sles 16.0 | 6.12.0-160000.26.1 | SUSE-SU-2026:20599-1 | Feb 27, 2026 |
| linux · Debian 12.15 (bookworm) | 6.1.158-1 | DEBIAN-CVE-2025-40106 | Oct 31, 2025 |
| linux · Debian 13.5 (trixie) | 6.12.57-1 | DEBIAN-CVE-2025-40106 | Oct 31, 2025 |
| linux · Debian 14 | 6.17.6-1 | DEBIAN-CVE-2025-40106 | Oct 31, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.