CVE-2025-71130

In the Linux kernel, the following vulnerability has been resolved: drm/i915/gem: Zero-initialize the eb.vma array in i915_gem_do_execbuffer Initialize the eb.vma array with values of 0 when the eb structure is first set up. In particular, this sets the eb->vma[i].vma pointers to NULL, simplifying cleanup and getting rid of the bug described below. During the execution of eb_lookup_vmas(), the eb->vma array is successively filled up with struct eb_vma objects. This process includes calling eb_add_vma(), which might fail; however, even in the event of failure, eb->vma[i].vma is set for the currently processed buffer. If eb_add_vma() fails, eb_lookup_vmas() returns with an error, which prompts a call to eb_release_vmas() to clean up the mess. Since eb_lookup_vmas() might fail during processing any (possibly not first) buffer, eb_release_vmas() checks whether a buffer's vma is NULL to know at what point did the lookup function fail. In eb_lookup_vmas(), eb->vma[i].vma is set to NULL if either the helper function eb_lookup_vma() or eb_validate_vma() fails. eb->vma[i+1].vma is set to NULL in case i915_gem_object_userptr_submit_init() fails; the current one needs to be cleaned up by eb_release_vmas() at this point, so the next one is set. If eb_add_vma() fails, neither the current nor the next vma is set to NULL, which is a source of a NULL deref bug described in the issue linked in the Closes tag. When entering eb_lookup_vmas(), the vma pointers are set to the slab poison value, instead of NULL. This doesn't matter for the actual lookup, since it gets overwritten anyway, however the eb_release_vmas() function only recognizes NULL as the stopping value, hence the pointers are being set to NULL as they go in case of intermediate failure. This patch changes the approach to filling them all with NULL at the start instead, rather than handling that manually during failure. (cherry picked from commit 08889b706d4f0b8d2352b7ca29c2d8df4d0787cd)
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:5.16:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*

History

30 Jul 2026, 06:24

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 5.5
v2 : unknown
v3 : 7.8

17 Jun 2026, 10:03

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/i915/gem: Inicializar a cero el array eb.vma en i915_gem_do_execbuffer Inicializar el array eb.vma con valores de 0 cuando la estructura eb se configura por primera vez. En particular, esto establece los punteros eb->vma[i].vma a NULL, simplificando la limpieza y eliminando el error descrito a continuación. Durante la ejecución de eb_lookup_vmas(), el array eb->vma se llena sucesivamente con objetos struct eb_vma. Este proceso incluye la llamada a eb_add_vma(), que podría fallar; sin embargo, incluso en caso de fallo, eb->vma[i].vma se establece para el búfer actualmente procesado. Si eb_add_vma() falla, eb_lookup_vmas() devuelve un error, lo que provoca una llamada a eb_release_vmas() para limpiar el desorden. Dado que eb_lookup_vmas() podría fallar durante el procesamiento de cualquier búfer (posiblemente no el primero), eb_release_vmas() comprueba si el vma de un búfer es NULL para saber en qué punto falló la función de búsqueda. En eb_lookup_vmas(), eb->vma[i].vma se establece en NULL si la función auxiliar eb_lookup_vma() o eb_validate_vma() falla. eb->vma[i+1].vma se establece en NULL en caso de que i915_gem_object_userptr_submit_init() falle; el actual debe ser limpiado por eb_release_vmas() en este punto, por lo que el siguiente se establece. Si eb_add_vma() falla, ni el vma actual ni el siguiente se establecen en NULL, lo que es una fuente de un error de desreferencia NULL descrito en el problema enlazado en la etiqueta Closes. Al entrar en eb_lookup_vmas(), los punteros vma se establecen al valor de envenenamiento de slab, en lugar de NULL. Esto no importa para la búsqueda real, ya que se sobrescribe de todos modos, sin embargo, la función eb_release_vmas() solo reconoce NULL como valor de parada, por lo tanto, los punteros se establecen en NULL a medida que avanzan en caso de fallo intermedio. Este parche cambia el enfoque para llenarlos todos con NULL al principio, en lugar de manejar eso manualmente durante el fallo. (cherry picked del commit 08889b706d4f0b8d2352b7ca29c2d8df4d0787cd)

25 Mar 2026, 18:53

Type Values Removed Values Added
CPE cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.16:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/0336188cc85d0eab8463bd1bbd4ded4e9602de8b - () https://git.kernel.org/stable/c/0336188cc85d0eab8463bd1bbd4ded4e9602de8b - Patch
References () https://git.kernel.org/stable/c/24d55ac8e31d2f8197bfad71ffcb3bae21ed7117 - () https://git.kernel.org/stable/c/24d55ac8e31d2f8197bfad71ffcb3bae21ed7117 - Patch
References () https://git.kernel.org/stable/c/25d69e07770745992387c016613fd7ac8eaf9893 - () https://git.kernel.org/stable/c/25d69e07770745992387c016613fd7ac8eaf9893 - Patch
References () https://git.kernel.org/stable/c/4fe2bd195435e71c117983d87f278112c5ab364c - () https://git.kernel.org/stable/c/4fe2bd195435e71c117983d87f278112c5ab364c - Patch
References () https://git.kernel.org/stable/c/63f23aa2fbb823c8b15a29269fde220d227ce5b3 - () https://git.kernel.org/stable/c/63f23aa2fbb823c8b15a29269fde220d227ce5b3 - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
CWE CWE-476
First Time Linux
Linux linux Kernel

14 Jan 2026, 15:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-14 15:16

Updated : 2026-07-30 06:24


NVD link : CVE-2025-71130

Mitre link : CVE-2025-71130

CVE.ORG link : CVE-2025-71130


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-476

NULL Pointer Dereference