CVE-2025-39788

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: exynos: Fix programming of HCI_UTRL_NEXUS_TYPE On Google gs101, the number of UTP transfer request slots (nutrs) is 32, and in this case the driver ends up programming the UTRL_NEXUS_TYPE incorrectly as 0. This is because the left hand side of the shift is 1, which is of type int, i.e. 31 bits wide. Shifting by more than that width results in undefined behaviour. Fix this by switching to the BIT() macro, which applies correct type casting as required. This ensures the correct value is written to UTRL_NEXUS_TYPE (0xffffffff on gs101), and it also fixes a UBSAN shift warning: UBSAN: shift-out-of-bounds in drivers/ufs/host/ufs-exynos.c:1113:21 shift exponent 32 is too large for 32-bit type 'int' For consistency, apply the same change to the nutmrs / UTMRL_NEXUS_TYPE write.
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:*:*:*:*:*:*:*:*

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: scsi: ufs: exynos: Corrección de la programación de HCI_UTRL_NEXUS_TYPE En Google gs101, el número de ranuras de solicitud de transferencia UTP (nutrs) es 32, y en este caso el controlador termina programando el UTRL_NEXUS_TYPE incorrectamente como 0. Esto se debe a que el lado izquierdo del desplazamiento es 1, que es de tipo int, es decir, de 31 bits de ancho. Desplazar por más de ese ancho resulta en comportamiento indefinido. Solucione esto cambiando a la macro BIT(), que aplica la conversión de tipo correcta según sea necesario. Esto asegura que el valor correcto se escriba en UTRL_NEXUS_TYPE (0xffffffff en gs101), y también corrige una advertencia de desplazamiento de UBSAN: UBSAN: desplazamiento fuera de límites en drivers/ufs/host/ufs-exynos.c:1113:21 el exponente de desplazamiento 32 es demasiado grande para el tipo 'int' de 32 bits Para mantener la coherencia, aplique el mismo cambio a la escritura de nutmrs / UTMRL_NEXUS_TYPE.

Information

Published : 2025-09-11 17:15

Updated : 2026-10-19 21:10


NVD link : CVE-2025-39788

Mitre link : CVE-2025-39788

CVE.ORG link : CVE-2025-39788


JSON object : View

Products Affected

debian

  • debian_linux

linux

  • linux_kernel
CWE
CWE-787

Out-of-bounds Write