LiveActive security incident?Get immediate response
CVE Record

CVE-2025-40106: comedi: fix divide-by-zero in comedi_buf_munge()

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This Linux kernel flaw can let a malformed Comedi command crash the kernel through a divide-by-zero condition. The demonstrated impact in the source bundle is availability loss, not data theft or remote compromise.

Executive priority

Treat as a targeted availability risk. Patch in normal kernel maintenance, faster where Comedi is used on multi-user or operational systems.

Technical view

comedi_buf_munge() used async->cmd.chanlist_len as a modulo divisor without checking for zero. A user program could submit chanlist_len=0, reaching a divide-by-zero in an interrupt-handler data path. Stable kernel commits add an early zero-length check.

Likely exposure

Exposure is most likely on Linux systems running affected kernel versions with Comedi functionality enabled and accessible to local user programs. The bundle does not identify remote attack paths, affected distributions, or privilege-escalation impact.

Exploitation context

The CVE source says a user program can submit a malformed command that may cause a kernel panic. CISA KEV status is false in the bundle, and no cited source claims active exploitation.

Researcher notes

Evidence supports a local malformed-command kernel panic scenario in the Comedi subsystem. The bundle lacks CVSS, CWE mapping, distribution advisories, exploit reports, and detailed affected-version ranges beyond Linux kernel records.

Mitigation direction

  • Apply the appropriate stable Linux kernel update containing the referenced Comedi fix.
  • Prioritize hosts using Comedi drivers or related device interfaces.
  • If a patch is unavailable, check vendor kernel guidance for supported mitigations.
  • Restrict Comedi device access to trusted local users until patched.

Validation and detection

  • Inventory Linux kernel versions and compare against vendor fixed releases.
  • Check whether Comedi support or related drivers are enabled on exposed hosts.
  • Review device-node permissions for Comedi interfaces.
  • Confirm the applied kernel includes one of the referenced stable commits.
Prepared
Confidence
medium
Sources
10

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2025-40106 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
0ADP providers
9Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinuxed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4, ed9eccbe8970f6eedc1b978c157caf1251a896d4unaffected
LinuxLinux2.6.29, 0, 5.4.301, 5.10.246, 5.15.196, 6.1.158, 6.6.115, 6.12.56, 6.17.6, 6.18affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.