{"id":"CVE-2026-31511","aliases":["CVE-2026-31511"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: MGMT: Fix dangling pointer on mgmt_add_adv_patterns_monitor_complete","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: Fix dangling pointer on mgmt_add_adv_patterns_monitor_complete\n\nThis fixes the condition checking so mgmt_pending_valid is executed\nwhenever status != -ECANCELED otherwise calling mgmt_pending_free(cmd)\nwould kfree(cmd) without unlinking it from the list first, leaving a\ndangling pointer. Any subsequent list traversal (e.g.,\nmgmt_pending_foreach during __mgmt_power_off, or another\nmgmt_pending_valid call) would dereference freed memory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: MGMT: Fix dangling pointer on mgmt_add_adv_patterns_monitor_complete\n\nThis fixes the condition checking so mgmt_pending_valid is executed\nwhenever status != -ECANCELED otherwise calling mgmt_pending_free(cmd)\nwould kfree(cmd) without unlinking it from the list first, leaving a\ndangling pointer. Any subsequent list traversal (e.g.,\nmgmt_pending_foreach during __mgmt_power_off, or another\nmgmt_pending_valid call) would dereference freed memory.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: MGMT: Corrección de puntero colgante en mgmt_add_adv_patterns_monitor_complete\n\nEsto corrige la comprobación de la condición para que mgmt_pending_valid se ejecute siempre que status != -ECANCELED; de lo contrario, llamar a mgmt_pending_free(cmd) haría kfree(cmd) sin desvincularlo de la lista primero, dejando un puntero colgante. Cualquier recorrido de lista posterior (por ejemplo, mgmt_pending_foreach durante __mgmt_power_off, o otra llamada a mgmt_pending_valid) desreferenciaría memoria liberada.","source":"nvd"}],"published":"2026-04-22T13:54:29.420Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","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":"Linux","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":"2074dfffad76981ca451cb7fc98703d04ac562fe","status":"affected"},{"type":"git","introduced":"d71b98f253b079cbadc83266383f26fe7e9e103b","fixed":"340666172cf747de58c283d2eef1f335f050538b","status":"affected"},{"type":"git","introduced":"302a1f674c00dd5581ab8e493ef44767c5101aab","fixed":"bafec9325d4de26b6c49db75b5d5172de652aae0","status":"affected"},{"type":"git","introduced":"302a1f674c00dd5581ab8e493ef44767c5101aab","fixed":"3a89c33deffb3cb7877a7ea2e50734cd12b064f2","status":"affected"},{"type":"git","introduced":"302a1f674c00dd5581ab8e493ef44767c5101aab","fixed":"5f5fa4cd35f707344f65ce9e225b6528691dbbaa","status":"affected"},{"type":"git","version":"87a1f16f07c6c43771754075e08f45b41d237421","status":"affected"},{"type":"semver","introduced":"6.12.59","fixed":"6.12.80","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.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","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.12.59","fixed":"6.12.80"},{"status":"affected","introduced":"6.16.10","fixed":"6.17"},{"status":"affected","introduced":"6.17.1","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"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"},{"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/2074dfffad76981ca451cb7fc98703d04ac562fe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/340666172cf747de58c283d2eef1f335f050538b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bafec9325d4de26b6c49db75b5d5172de652aae0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a89c33deffb3cb7877a7ea2e50734cd12b064f2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f5fa4cd35f707344f65ce9e225b6528691dbbaa","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:10:27.942Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31511","url":"https://www.cve.org/CVERecord?id=CVE-2026-31511","licence":"CVE Terms of Use","modified":"2026-10-19T18:45:54.516Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31511","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31511","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.303Z","epss":{"score":0.00134,"percentile":0.03125,"date":"2026-12-01T12:00:22.000Z"}}