CVE-2026-43059

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix list corruption and UAF in command complete handlers Commit 302a1f674c00 ("Bluetooth: MGMT: Fix possible UAFs") introduced mgmt_pending_valid(), which not only validates the pending command but also unlinks it from the pending list if it is valid. This change in semantics requires updates to several completion handlers to avoid list corruption and memory safety issues. This patch addresses two left-over issues from the aforementioned rework: 1. In mgmt_add_adv_patterns_monitor_complete(), mgmt_pending_remove() is replaced with mgmt_pending_free() in the success path. Since mgmt_pending_valid() already unlinks the command at the beginning of the function, calling mgmt_pending_remove() leads to a double list_del() and subsequent list corruption/kernel panic. 2. In set_mesh_complete(), the use of mgmt_pending_foreach() in the error path is removed. Since the current command is already unlinked by mgmt_pending_valid(), this foreach loop would incorrectly target other pending mesh commands, potentially freeing them while they are still being processed concurrently (leading to UAFs). The redundant mgmt_cmd_status() is also simplified to use cmd->opcode directly.
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:6.17:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*

History

11 Nov 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: MGMT: Corrección de corrupción de lista y UAF en los manejadores de finalización de comandos El commit 302a1f674c00 (’Bluetooth: MGMT: Corrección de posibles UAF’) introdujo mgmt_pending_valid(), que no solo valida el comando pendiente sino que también lo desvincula de la lista de pendientes si es válido. Este cambio en la semántica requiere actualizaciones en varios manejadores de finalización para evitar la corrupción de la lista y problemas de seguridad de la memoria. Este parche aborda dos problemas restantes del rediseño mencionado: 1. En mgmt_add_adv_patterns_monitor_complete(), mgmt_pending_remove() es reemplazado por mgmt_pending_free() en la ruta de éxito. Dado que mgmt_pending_valid() ya desvincula el comando al principio de la función, llamar a mgmt_pending_remove() conduce a un doble list_del() y a la subsiguiente corrupción de la lista/kernel panic. 2. En set_mesh_complete(), el uso de mgmt_pending_foreach() en la ruta de error es eliminado. Dado que el comando actual ya está desvinculado por mgmt_pending_valid(), este bucle foreach apuntaría incorrectamente a otros comandos mesh pendientes, potencialmente liberándolos mientras aún están siendo procesados concurrentemente (lo que lleva a UAF). El mgmt_cmd_status() redundante también se simplifica para usar cmd -> opcode directamente.

21 Oct 2026, 13:18

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

Information

Published : 2026-05-05 16:16

Updated : 2026-11-11 21:10


NVD link : CVE-2026-43059

Mitre link : CVE-2026-43059

CVE.ORG link : CVE-2026-43059


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free