CVE-2026-43340

In the Linux kernel, the following vulnerability has been resolved: comedi: Reinit dev->spinlock between attachments to low-level drivers `struct comedi_device` is the main controlling structure for a COMEDI device created by the COMEDI subsystem. It contains a member `spinlock` containing a spin-lock that is initialized by the COMEDI subsystem, but is reserved for use by a low-level driver attached to the COMEDI device (at least since commit 25436dc9d84f ("Staging: comedi: remove RT code")). Some COMEDI devices (those created on initialization of the COMEDI subsystem when the "comedi.comedi_num_legacy_minors" parameter is non-zero) can be attached to different low-level drivers over their lifetime using the `COMEDI_DEVCONFIG` ioctl command. This can result in inconsistent lock states being reported when there is a mismatch in the spin-lock locking levels used by each low-level driver to which the COMEDI device has been attached. Fix it by reinitializing `dev->spinlock` before calling the low-level driver's `attach` function pointer if `CONFIG_LOCKDEP` is enabled.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

History

11 Nov 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: comedi: Reinicializar ’dev -> spinlock’ entre adjuntos a controladores de bajo nivel ’struct comedi_device’ es la estructura de control principal para un dispositivo COMEDI creado por el subsistema COMEDI. Contiene un miembro ’spinlock’ que contiene un spin-lock que es inicializado por el subsistema COMEDI, pero está reservado para uso por un controlador de bajo nivel adjunto al dispositivo COMEDI (al menos desde el commit 25436dc9d84f (’Staging: comedi: remove RT code’)). Algunos dispositivos COMEDI (aquellos creados en la inicialización del subsistema COMEDI cuando el parámetro ’comedi.comedi_num_legacy_minors’ no es cero) pueden ser adjuntados a diferentes controladores de bajo nivel durante su vida útil usando el comando ioctl ’COMEDI_DEVCONFIG’. Esto puede resultar en que se reporten estados de bloqueo inconsistentes cuando hay un desajuste en los niveles de bloqueo del spin-lock utilizados por cada controlador de bajo nivel al que se ha adjuntado el dispositivo COMEDI. Solucionarlo reinicializando ’dev -> spinlock’ antes de llamar al puntero de función ’attach’ del controlador de bajo nivel si ’CONFIG_LOCKDEP’ está habilitado.

Information

Published : 2026-05-08 14:16

Updated : 2026-11-11 20:10


NVD link : CVE-2026-43340

Mitre link : CVE-2026-43340

CVE.ORG link : CVE-2026-43340


JSON object : View

Products Affected

linux

  • linux_kernel