CVE-2025-40106

Description

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.

Severity
not scored
CVSS v3
not scored
The CNA gave no score; NVD deferred this CVE.
Exploit chance (EPSS)
0.210%
chance of exploitation in the next 30 days
higher than 11.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Timeline

  1. 2025-10-31Published by the CNA09:41 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
linux linux
linux linux_kernelfrom 2.6.29 before 5.10.246fixed in 5.10.246from 2.6.29 before 5.15.196fixed in 5.15.196from 2.6.29 before 5.4.301fixed in 5.4.301from 2.6.29 before 6.1.158fixed in 6.1.158from 2.6.29 before 6.12.56fixed in 6.12.56(+3 more)5.10.2465.15.1965.4.3016.1.1586.12.56

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources