CVE-2026-31583

In the Linux kernel, the following vulnerability has been resolved: media: em28xx: fix use-after-free in em28xx_v4l2_open() em28xx_v4l2_open() reads dev->v4l2 without holding dev->lock, creating a race with em28xx_v4l2_init()'s error path and em28xx_v4l2_fini(), both of which free the em28xx_v4l2 struct and set dev->v4l2 to NULL under dev->lock. This race leads to two issues: - use-after-free in v4l2_fh_init() when accessing vdev->ctrl_handler, since the video_device is embedded in the freed em28xx_v4l2 struct. - NULL pointer dereference in em28xx_resolution_set() when accessing v4l2->norm, since dev->v4l2 has been set to NULL. Fix this by moving the mutex_lock() before the dev->v4l2 read and adding a NULL check for dev->v4l2 under the lock.
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:*:*:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: em28xx: corregir uso después de liberación en em28xx_v4l2_open() em28xx_v4l2_open() lee dev-mayor que v4l2 sin mantener dev -> lock, creando una condición de carrera con la ruta de error de em28xx_v4l2_init() y em28xx_v4l2_fini(), ambos de los cuales liberan la estructura em28xx_v4l2 y establecen dev-mayor que v4l2 a NULL bajo dev -> lock. Esta condición de carrera conduce a dos problemas: - uso después de liberación en v4l2_fh_init() al acceder a vdev -> ctrl_handler, ya que el video_device está incrustado en la estructura em28xx_v4l2 liberada. - desreferencia de puntero NULL en em28xx_resolution_set() al acceder a v4l2 -> norm, ya que dev-mayor que v4l2 ha sido establecido a NULL. Solucionar esto moviendo el mutex_lock() antes de la lectura de dev-mayor que v4l2 y añadiendo una comprobación de NULL para dev-mayor que v4l2 bajo el bloqueo.

15 Oct 2026, 02:19

Type Values Removed Values Added
References
  • () https://cert-portal.siemens.com/productcert/html/ssa-784472.html -

Information

Published : 2026-04-24 15:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31583

Mitre link : CVE-2026-31583

CVE.ORG link : CVE-2026-31583


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free