CVE-2025-38685

In the Linux kernel, the following vulnerability has been resolved: fbdev: Fix vmalloc out-of-bounds write in fast_imageblit This issue triggers when a userspace program does an ioctl FBIOPUT_CON2FBMAP by passing console number and frame buffer number. Ideally this maps console to frame buffer and updates the screen if console is visible. As part of mapping it has to do resize of console according to frame buffer info. if this resize fails and returns from vc_do_resize() and continues further. At this point console and new frame buffer are mapped and sets display vars. Despite failure still it continue to proceed updating the screen at later stages where vc_data is related to previous frame buffer and frame buffer info and display vars are mapped to new frame buffer and eventully leading to out-of-bounds write in fast_imageblit(). This bheviour is excepted only when fg_console is equal to requested console which is a visible console and updates screen with invalid struct references in fbcon_putcs().
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:2.6.12:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

History

19 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fbdev: Corrección de escritura fuera de límites de vmalloc en fast_imageblit Este problema se activa cuando un programa de espacio de usuario realiza un ioctl FBIOPUT_CON2FBMAP pasando el número de consola y el número de búfer de fotogramas. Idealmente, esto mapea la consola al búfer de fotogramas y actualiza la pantalla si la consola está visible. Como parte del mapeo, tiene que realizar un redimensionamiento de la consola según la información del búfer de fotogramas. Si este redimensionamiento falla y regresa de vc_do_resize() y continúa más allá. En este punto, la consola y el nuevo búfer de fotogramas están mapeados y establece las variables de visualización. A pesar del fallo, aún así continúa procediendo a actualizar la pantalla en etapas posteriores donde vc_data está relacionado con el búfer de fotogramas anterior y la información del búfer de fotogramas y las variables de visualización están mapeadas al nuevo búfer de fotogramas y eventualmente llevando a una escritura fuera de límites en fast_imageblit(). Este comportamiento se espera solo cuando fg_console es igual a la consola solicitada, que es una consola visible, y actualiza la pantalla con referencias de estructura inválidas en fbcon_putcs().

Information

Published : 2025-09-04 16:15

Updated : 2026-10-19 21:10


NVD link : CVE-2025-38685

Mitre link : CVE-2025-38685

CVE.ORG link : CVE-2025-38685


JSON object : View

Products Affected

debian

  • debian_linux

linux

  • linux_kernel
CWE
CWE-787

Out-of-bounds Write