{"id":"CVE-2026-31771","aliases":["CVE-2026-31771"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: hci_event: move wake reason storage into validated event handlers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_event: move wake reason storage into validated event handlers\n\nhci_store_wake_reason() is called from hci_event_packet() immediately\nafter stripping the HCI event header but before hci_event_func()\nenforces the per-event minimum payload length from hci_ev_table.\nThis means a short HCI event frame can reach bacpy() before any bounds\ncheck runs.\n\nRather than duplicating skb parsing and per-event length checks inside\nhci_store_wake_reason(), move wake-address storage into the individual\nevent handlers after their existing event-length validation has\nsucceeded. Convert hci_store_wake_reason() into a small helper that only\nstores an already-validated bdaddr while the caller holds hci_dev_lock().\nUse the same helper after hci_event_func() with a NULL address to\npreserve the existing unexpected-wake fallback semantics when no\nvalidated event handler records a wake address.\n\nAnnotate the helper with __must_hold(&hdev->lock) and add\nlockdep_assert_held(&hdev->lock) so future call paths keep the lock\ncontract explicit.\n\nCall the helper from hci_conn_request_evt(), hci_conn_complete_evt(),\nhci_sync_conn_complete_evt(), le_conn_complete_evt(),\nhci_le_adv_report_evt(), hci_le_ext_adv_report_evt(),\nhci_le_direct_adv_report_evt(), hci_le_pa_sync_established_evt(), and\nhci_le_past_received_evt().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_event: move wake reason storage into validated event handlers\n\nhci_store_wake_reason() is called from hci_event_packet() immediately\nafter stripping the HCI event header but before hci_event_func()\nenforces the per-event minimum payload length from hci_ev_table.\nThis means a short HCI event frame can reach bacpy() before any bounds\ncheck runs.\n\nRather than duplicating skb parsing and per-event length checks inside\nhci_store_wake_reason(), move wake-address storage into the individual\nevent handlers after their existing event-length validation has\nsucceeded. Convert hci_store_wake_reason() into a small helper that only\nstores an already-validated bdaddr while the caller holds hci_dev_lock().\nUse the same helper after hci_event_func() with a NULL address to\npreserve the existing unexpected-wake fallback semantics when no\nvalidated event handler records a wake address.\n\nAnnotate the helper with __must_hold(&hdev->lock) and add\nlockdep_assert_held(&hdev->lock) so future call paths keep the lock\ncontract explicit.\n\nCall the helper from hci_conn_request_evt(), hci_conn_complete_evt(),\nhci_sync_conn_complete_evt(), le_conn_complete_evt(),\nhci_le_adv_report_evt(), hci_le_ext_adv_report_evt(),\nhci_le_direct_adv_report_evt(), hci_le_pa_sync_established_evt(), and\nhci_le_past_received_evt().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: hci_event: mover el almacenamiento del motivo de activación a los gestores de eventos validados\n\nhci_store_wake_reason() es llamada desde hci_event_packet() inmediatamente después de eliminar la cabecera del evento HCI pero antes de que hci_event_func() imponga la longitud mínima de carga útil por evento de hci_ev_table. Esto significa que una trama de evento HCI corta puede alcanzar bacpy() antes de que se ejecute cualquier comprobación de límites.\n\nEn lugar de duplicar el análisis de skb y las comprobaciones de longitud por evento dentro de hci_store_wake_reason(), mover el almacenamiento de la dirección de activación a los gestores de eventos individuales después de que su validación de longitud de evento existente haya tenido éxito. Convertir hci_store_wake_reason() en una pequeña función auxiliar que solo almacena una bdaddr ya validada mientras el llamador mantiene hci_dev_lock(). Usar la misma función auxiliar después de hci_event_func() con una dirección NULL para preservar la semántica de reserva de activación inesperada existente cuando ningún gestor de eventos validado registra una dirección de activación.\n\nAnotar la función auxiliar con __must_hold(&hdev  ->  lock) y añadir lockdep_assert_held(&hdev  ->  lock) para que las futuras rutas de llamada mantengan explícito el contrato de bloqueo.\n\nLlamar a la función auxiliar desde hci_conn_request_evt(), hci_conn_complete_evt(), hci_sync_conn_complete_evt(), le_conn_complete_evt(), hci_le_adv_report_evt(), hci_le_ext_adv_report_evt(), hci_le_direct_adv_report_evt(), hci_le_pa_sync_established_evt(), y hci_le_past_received_evt().","source":"nvd"}],"published":"2026-05-01T14:14:59.918Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","fixed":"fbea63d0d301edd4a42f4390b49b8519d78b802d","status":"affected"},{"type":"git","introduced":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","fixed":"1e4b738dd0d0f7b237686167706badad9d30649c","status":"affected"},{"type":"git","introduced":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","fixed":"ac7889b0fe441e4ef892c40b1d002e91f93fa4ae","status":"affected"},{"type":"git","introduced":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","fixed":"dbc8b8d33c9e19e17e8b8b1361bbb46e2983f5f2","status":"affected"},{"type":"git","introduced":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","fixed":"86c8d07a64d553c41e213b52650020010f9ef23e","status":"affected"},{"type":"git","introduced":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","fixed":"2b2bf47cd75518c36fa2d41380e4a40641cc89cd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","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":"5.10","fixed":"6.19.12"},{"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/fbea63d0d301edd4a42f4390b49b8519d78b802d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e4b738dd0d0f7b237686167706badad9d30649c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac7889b0fe441e4ef892c40b1d002e91f93fa4ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dbc8b8d33c9e19e17e8b8b1361bbb46e2983f5f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/86c8d07a64d553c41e213b52650020010f9ef23e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b2bf47cd75518c36fa2d41380e4a40641cc89cd","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T15:13:04.391Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31771","url":"https://www.cve.org/CVERecord?id=CVE-2026-31771","licence":"CVE Terms of Use","modified":"2026-10-30T12:24:42.601Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31771","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31771","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.379Z","epss":{"score":0.00429,"percentile":0.28886,"date":"2026-11-30T12:00:22.000Z"}}