CVE-2025-71272

In the Linux kernel, the following vulnerability has been resolved: most: core: fix resource leak in most_register_interface error paths The function most_register_interface() did not correctly release resources if it failed early (before registering the device). In these cases, it returned an error code immediately, leaking the memory allocated for the interface. Fix this by initializing the device early via device_initialize() and calling put_device() on all error paths. The most_register_interface() is expected to call put_device() on error which frees the resources allocated in the caller. The put_device() either calls release_mdev() or dim2_release(), depending on the caller. Switch to using device_add() instead of device_register() to handle the split initialization.
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:*:*:*:*:*:*:*:*

History

21 Oct 2026, 13:18

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/82f42a13e3d7a07a950ee4fa2d4c74843a3e7ace -

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: most: core: corregir fuga de recursos en las rutas de error de most_register_interface La función most_register_interface() no liberaba correctamente los recursos si fallaba prematuramente (antes de registrar el dispositivo). En estos casos, devolvía un código de error inmediatamente, fugando la memoria asignada para la interfaz. Solucionar esto mediante la inicialización temprana del dispositivo a través de device_initialize() y llamando a put_device() en todas las rutas de error. Se espera que most_register_interface() llame a put_device() en caso de error, lo que libera los recursos asignados en el llamador. put_device() llama a release_mdev() o a dim2_release(), dependiendo del llamador. Cambiar a usar device_add() en lugar de device_register() para manejar la inicialización dividida.

Information

Published : 2026-05-06 12:16

Updated : 2026-10-21 13:18


NVD link : CVE-2025-71272

Mitre link : CVE-2025-71272

CVE.ORG link : CVE-2025-71272


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-401

Missing Release of Memory after Effective Lifetime