CVE-2024-56540

In the Linux kernel, the following vulnerability has been resolved: accel/ivpu: Prevent recovery invocation during probe and resume Refactor IPC send and receive functions to allow correct handling of operations that should not trigger a recovery process. Expose ivpu_send_receive_internal(), which is now utilized by the D0i3 entry, DCT initialization, and HWS initialization functions. These functions have been modified to return error codes gracefully, rather than initiating recovery. The updated functions are invoked within ivpu_probe() and ivpu_resume(), ensuring that any errors encountered during these stages result in a proper teardown or shutdown sequence. The previous approach of triggering recovery within these functions could lead to a race condition, potentially causing undefined behavior and kernel crashes due to null pointer dereferences.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

03 Feb 2025, 15:18

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/362ef76020ea6219a4df4ac5b738672b59527239 - () https://git.kernel.org/stable/c/362ef76020ea6219a4df4ac5b738672b59527239 - Patch
References () https://git.kernel.org/stable/c/5eaa497411197c41b0813d61ba3fbd6267049082 - () https://git.kernel.org/stable/c/5eaa497411197c41b0813d61ba3fbd6267049082 - Patch
References () https://git.kernel.org/stable/c/cac822772c4dc27a285f09caf30072ab76d2bf38 - () https://git.kernel.org/stable/c/cac822772c4dc27a285f09caf30072ab76d2bf38 - Patch
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CWE CWE-476
CWE-362
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: accel/ivpu: Evitar la invocación de recuperación durante la sonda y reanudación Refactorizar las funciones de envío y recepción de IPC para permitir la gestión correcta de operaciones que no deberían activar un proceso de recuperación. Exponer ivpu_send_receive_internal(), que ahora es utilizado por la entrada D0i3, la inicialización de DCT y las funciones de inicialización de HWS. Estas funciones se han modificado para devolver códigos de error de forma elegante, en lugar de iniciar la recuperación. Las funciones actualizadas se invocan dentro de ivpu_probe() e ivpu_resume(), lo que garantiza que cualquier error encontrado durante estas etapas dé como resultado una secuencia de desmontaje o apagado adecuada. El enfoque anterior de activar la recuperación dentro de estas funciones podría conducir a una condición de ejecución, lo que podría causar un comportamiento indefinido y fallas del kernel debido a desreferencias de puntero nulo.
First Time Linux linux Kernel
Linux
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.7

27 Dec 2024, 14:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-12-27 14:15

Updated : 2025-02-03 15:18


NVD link : CVE-2024-56540

Mitre link : CVE-2024-56540

CVE.ORG link : CVE-2024-56540


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-362

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

CWE-476

NULL Pointer Dereference