{"id":"CVE-2026-43059","aliases":["CVE-2026-43059"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: MGMT: Fix list corruption and UAF in command complete handlers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: Fix list corruption and UAF in command complete handlers\n\nCommit 302a1f674c00 (\"Bluetooth: MGMT: Fix possible UAFs\") introduced\nmgmt_pending_valid(), which not only validates the pending command but\nalso unlinks it from the pending list if it is valid. This change in\nsemantics requires updates to several completion handlers to avoid list\ncorruption and memory safety issues.\n\nThis patch addresses two left-over issues from the aforementioned rework:\n\n1. In mgmt_add_adv_patterns_monitor_complete(), mgmt_pending_remove()\nis replaced with mgmt_pending_free() in the success path. Since\nmgmt_pending_valid() already unlinks the command at the beginning of\nthe function, calling mgmt_pending_remove() leads to a double list_del()\nand subsequent list corruption/kernel panic.\n\n2. In set_mesh_complete(), the use of mgmt_pending_foreach() in the error\npath is removed. Since the current command is already unlinked by\nmgmt_pending_valid(), this foreach loop would incorrectly target other\npending mesh commands, potentially freeing them while they are still being\nprocessed concurrently (leading to UAFs). The redundant mgmt_cmd_status()\nis also simplified to use cmd->opcode directly.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: Fix list corruption and UAF in command complete handlers\n\nCommit 302a1f674c00 (\"Bluetooth: MGMT: Fix possible UAFs\") introduced\nmgmt_pending_valid(), which not only validates the pending command but\nalso unlinks it from the pending list if it is valid. This change in\nsemantics requires updates to several completion handlers to avoid list\ncorruption and memory safety issues.\n\nThis patch addresses two left-over issues from the aforementioned rework:\n\n1. In mgmt_add_adv_patterns_monitor_complete(), mgmt_pending_remove()\nis replaced with mgmt_pending_free() in the success path. Since\nmgmt_pending_valid() already unlinks the command at the beginning of\nthe function, calling mgmt_pending_remove() leads to a double list_del()\nand subsequent list corruption/kernel panic.\n\n2. In set_mesh_complete(), the use of mgmt_pending_foreach() in the error\npath is removed. Since the current command is already unlinked by\nmgmt_pending_valid(), this foreach loop would incorrectly target other\npending mesh commands, potentially freeing them while they are still being\nprocessed concurrently (leading to UAFs). The redundant mgmt_cmd_status()\nis also simplified to use cmd->opcode directly.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: MGMT: Corrección de corrupción de lista y UAF en los manejadores de finalización de comandos\n\nEl 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.\n\nEste parche aborda dos problemas restantes del rediseño mencionado:\n\n1. 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.\n\n2. 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.","source":"nvd"}],"published":"2026-05-05T15:17:25.727Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"0b60eb04b8524e1b4b3f07fea0d16fda9a677d9a","fixed":"3d6de8467236cd763ddc7d06127689bdfbfbd8ff","status":"affected"},{"type":"git","introduced":"d71b98f253b079cbadc83266383f26fe7e9e103b","fixed":"695b45b2262fcb5e71bed1175aad59c72f92aa78","status":"affected"},{"type":"git","introduced":"302a1f674c00dd5581ab8e493ef44767c5101aab","fixed":"b5c5e96f3b0a5003c3ff98ebb33e59afec51dd77","status":"affected"},{"type":"git","introduced":"302a1f674c00dd5581ab8e493ef44767c5101aab","fixed":"02023ff760cc104a5d86a82ef5b8dd89098ad78d","status":"affected"},{"type":"git","introduced":"302a1f674c00dd5581ab8e493ef44767c5101aab","fixed":"17f89341cb4281d1da0e2fb0de5406ab7c4e25ef","status":"affected"},{"type":"git","version":"87a1f16f07c6c43771754075e08f45b41d237421","status":"affected"},{"type":"semver","introduced":"6.6.140","fixed":"6.6.160","status":"affected"},{"type":"semver","introduced":"6.12.59","fixed":"6.12.78","status":"affected"},{"type":"semver","introduced":"6.16.10","fixed":"6.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.20","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.10","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.140","fixed":"6.7"},{"status":"affected","introduced":"6.12.59","fixed":"6.12.78"},{"status":"affected","introduced":"6.16.10","fixed":"6.17"},{"status":"affected","introduced":"6.17.1","fixed":"6.18.20"},{"status":"affected","introduced":"6.19","fixed":"6.19.10"},{"status":"affected","version":"6.17"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3d6de8467236cd763ddc7d06127689bdfbfbd8ff","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/695b45b2262fcb5e71bed1175aad59c72f92aa78","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5c5e96f3b0a5003c3ff98ebb33e59afec51dd77","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02023ff760cc104a5d86a82ef5b8dd89098ad78d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17f89341cb4281d1da0e2fb0de5406ab7c4e25ef","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:27:32.990Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43059","url":"https://www.cve.org/CVERecord?id=CVE-2026-43059","licence":"CVE Terms of Use","modified":"2026-11-06T15:32:29.079Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43059","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43059","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.610Z","epss":{"score":0.00165,"percentile":0.05926,"date":"2026-12-01T12:00:22.000Z"}}