1. Accueil
  2. Vulnérabilités
  3. CVE-2025-38478

CVE-2025-38478

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

Publiée le 28 juil. 2025 · modifiée le 15 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 24/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (9 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 2.6.29 — CNA (éditeur ou attributeur)
Linux kernel de 2.6.29 (inclus) à 5.4.297 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.241 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.190 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.147 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.100 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.12.40 (exclu) — NVD
Linux kernel de 6.13 (inclus) à 6.15.8 (exclu) — NVD
Linux kernel 6.16 — NVD
Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 11.0 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-908 · Autre (CWE-908)

Comment sont obtenues et calculées ces données