7.8

CVE-2025-39686: comedi: Make insn_rw_emulate_bits() do insn->n samples

Modified
AliasesUBUNTU-CVE-2025-39686DEBIAN-CVE-2025-39686
Published 05-09-2025Last modified 12-05-2026

Vulnerability summary

CVE-2025-39686 is a high (CVSS 7.8) vulnerability in debian debian_linux. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.19%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 45 · Related 40

Timeline

  1. 05-09-2025
    PublishedVulnerability first disclosed.
  2. 12-05-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: comedi: Make insn_rw_emulate_bits() do insn->n samples The `insn_rw_emulate_bits()` function is used as a default handler for `INSN_READ` instructions for subdevices that have a handler for `INSN_BITS` but not for `INSN_READ`. Similarly, it is used as a default handler for `INSN_WRITE` instructions for subdevices that have a handler for `INSN_BITS` but not for `INSN_WRITE`. It works by emulating the `INSN_READ` or `INSN_WRITE` instruction handling with a constructed `INSN_BITS` instruction. However, `INSN_READ` and `INSN_WRITE` instructions are supposed to be able read or write multiple samples, indicated by the `insn->n` value, but `insn_rw_emulate_bits()` currently only handles a single sample. For `INSN_READ`, the comedi core will copy `insn->n` samples back to user-space. (That triggered KASAN kernel-infoleak errors when `insn->n` was greater than 1, but that is being fixed more generally elsewhere in the comedi core.) Make `insn_rw_emulate_bits()` either handle `insn->n` samples, or return an error, to conform to the general expectation for `INSN_READ` and `INSN_WRITE` handlers.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.19% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu148 products
  • linuxAll versions (No fix recorded) | < 5.15.0-163.173 | < 6.8.0-100.100
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1097.104 | < 6.8.0-1046.49
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Debian2 products
  • linux< 6.1.153-1 | < 6.12.48-1 | < 6.16.5-1
  • debian_linuxEOL11.0
Linux2 products
  • linux≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < ab77e85bd3bc006ef40738f26f446a660813da44 | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < ae8bc1f07bcb31b8636420e03d1f9c3df6219a2b | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 842f307a1d115b24f2bcb2415c4e344f11f55930 | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 92352ed2f9ac422181e381c2430c2d0dfb46faa0 | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < dc0a2f142d655700db43de90cb6abf141b73d908 | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 7afba9221f70d4cbce0f417c558879cba0eb5e66 | 2.6.29
  • linux_kernel≥ 2.6.29, < 5.15.190 | ≥ 5.16, < 6.1.149 | ≥ 6.2, < 6.6.103 | ≥ 6.7, < 6.12.44 | ≥ 6.13, < 6.16.4 | 6.17:rc1 | 6.17:rc2

3 vendors · 152 products

References

38 links
Show all 38 references