5.5

CVE-2025-39684: comedi: Fix use of uninitialized memory in do_insn_ioctl() and do_insnlist_ioctl()

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

Vulnerability summary

CVE-2025-39684 is a medium (CVSS 5.5) Use of Uninitialized Resource vulnerability in debian debian_linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.5% of scored vulnerabilities.

Priority
Routine

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

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.18%
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: Fix use of uninitialized memory in do_insn_ioctl() and do_insnlist_ioctl() syzbot reports a KMSAN kernel-infoleak in `do_insn_ioctl()`. A kernel buffer is allocated to hold `insn->n` samples (each of which is an `unsigned int`). For some instruction types, `insn->n` samples are copied back to user-space, unless an error code is being returned. The problem is that not all the instruction handlers that need to return data to userspace fill in the whole `insn->n` samples, so that there is an information leak. There is a similar syzbot report for `do_insnlist_ioctl()`, although it does not have a reproducer for it at the time of writing. One culprit is `insn_rw_emulate_bits()` which is used as the handler for `INSN_READ` or `INSN_WRITE` instructions for subdevices that do not have a specific handler for that instruction, but do have an `INSN_BITS` handler. For `INSN_READ` it only fills in at most 1 sample, so if `insn->n` is greater than 1, the remaining `insn->n - 1` samples copied to userspace will be uninitialized kernel data. Another culprit is `vm80xx_ai_insn_read()` in the "vm80xx" driver. It never returns an error, even if it fails to fill the buffer. Fix it in `do_insn_ioctl()` and `do_insnlist_ioctl()` by making sure that uninitialized parts of the allocated buffer are zeroed before handling each instruction. Thanks to Arnaud Lecomte for their fix to `do_insn_ioctl()`. That fix replaced the call to `kmalloc_array()` with `kcalloc()`, but it is not always necessary to clear the whole buffer.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.18%

Chance of exploitation in the next 30 days

Percentile

8%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.18% 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

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, < 868a1b68dcd9f2805bb86aa64862402f785d8c4a | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < ff4a7c18799c7fe999fa56c5cf276e13866b8c1a | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < d84f6e77ebe3359394df32ecd97e0d76a25283dc | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < f3b0c9ec54736f3b8118f93a473d22e11ee65743 | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < aecf0d557ddd95ce68193a5ee1dc4c87415ff08a | ≥ ed9eccbe8970f6eedc1b978c157caf1251a896d4, < 3cd212e895ca2d58963fdc6422502b10dd3966bb | 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