CVE-2025-38478CWE-908

CVE-2025-38478

High · published July 28, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
7.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

comedi: Fix initialization of data for instructions that write to subdevice

Some Comedi subdevice instruction handlers are known to access

instruction data elements beyond the first `insn->n` elements in some

cases. The `do_insn_ioctl()` and `do_insnlist_ioctl()` functions

allocate at least `MIN_SAMPLES` (16) data elements to deal with this,

but they do not initialize all of that. For Comedi instruction codes

that write to the subdevice, the first `insn->n` data elements are

copied from user-space, but the remaining elements are left

uninitialized. That could be a problem if the subdevice instruction

handler reads the uninitialized data. Ensure that the first

`MIN_SAMPLES` elements are initialized before calling these instruction

handlers, filling the uncopied elements with 0. For

`do_insnlist_ioctl()`, the same data buffer elements are used for

handling a list of instructions, so ensure the first `MIN_SAMPLES`

elements are initialized for each instruction that writes to the

subdevice.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00179 · 7.1th percentile
Weakness
CWE-908 · Use of Uninitialized Resource
Published
2025-07-28T16:15Z
Affected products (14)
ProductVersionsFixed in
linux/linux_kernel≥ 2.6.29, < 5.4.2975.4.297
linux/linux_kernel≥ 5.5, < 5.10.2415.10.241
linux/linux_kernel≥ 5.11, < 5.15.1905.15.190
linux/linux_kernel≥ 5.16, < 6.1.1476.1.147
linux/linux_kernel≥ 6.2, < 6.6.1006.6.100
linux/linux_kernel≥ 6.7, < 6.12.406.12.40
linux/linux_kernel≥ 6.13, < 6.15.86.15.8
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
debian/debian_linuxall versions—
References (10)
EPSS history
Timeline
  • 28 JUL 11:21Z
    comedi: Fix initialization of data for instructions that write to subdevice
    cvelistv5