CVE-2025-40106: Linux kernel · comedi: fix divide-by-zero in comedi_buf_munge()
Source GCVE Database
Not known to be exploited.
Data as of 29 Oct 2026, 23:29 UTC
Rated Medium by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 31 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented that adds a check for zero chanlist_len in the comedi_buf_munge() function to prevent divide-by-zero errors. Users should apply the official Linux kernel update containing this fix once it is available. Until then, avoid submitting commands with chanlist_len set to zero to mitigate the risk.
Description
A divide-by-zero vulnerability was identified and fixed in the Linux kernel's comedi_buf_munge() function. The function performed a modulo operation without checking if the divisor (chanlist_len) was zero, which could cause a kernel panic if a user submitted a command with chanlist_len set to zero. The fix adds a check for zero chanlist_len and returns early to prevent the error.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40106 (opens in a new tab)
- git.kernel.org/stable/c/2670932f2465793fea1ef073e40883e8390fa4d9 (opens in a new tab)
- git.kernel.org/stable/c/4ffea48c69cb2b96a281cb7e5e42d706996631db (opens in a new tab)
- git.kernel.org/stable/c/55520f65fd447e04099a2c44185453c18ea73b7e (opens in a new tab)
- git.kernel.org/stable/c/6db19822512396be1a3e1e20c16c97270285ba1a (opens in a new tab)
- git.kernel.org/stable/c/87b318ba81dda2ee7b603f4f6c55e78ec3e95974 (opens in a new tab)
- git.kernel.org/stable/c/8f3e4cd9be4b47246ea73ce5e3e0fa2f57f0d10c (opens in a new tab)
- git.kernel.org/stable/c/a4bb5d1bc2f238461bcbe5303eb500466690bb2c (opens in a new tab)
- git.kernel.org/stable/c/d4854eff25efb06d0d84c13e7129bbdba4125f8c (opens in a new tab)