{"id":"CVE-2026-31771","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-05-01T15:16:40.337","lastModified":"2026-11-11T21:10:00.200","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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()."},{"lang":"es","value":"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()."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["net/bluetooth/hci_event.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","lessThan":"fbea63d0d301edd4a42f4390b49b8519d78b802d","versionType":"git","status":"affected"},{"version":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","lessThan":"1e4b738dd0d0f7b237686167706badad9d30649c","versionType":"git","status":"affected"},{"version":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","lessThan":"ac7889b0fe441e4ef892c40b1d002e91f93fa4ae","versionType":"git","status":"affected"},{"version":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","lessThan":"dbc8b8d33c9e19e17e8b8b1361bbb46e2983f5f2","versionType":"git","status":"affected"},{"version":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","lessThan":"86c8d07a64d553c41e213b52650020010f9ef23e","versionType":"git","status":"affected"},{"version":"2f20216c1d6fe17c1a224f658be0dc6fab2269c7","lessThan":"2b2bf47cd75518c36fa2d41380e4a40641cc89cd","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["net/bluetooth/hci_event.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.10","status":"affected"},{"version":"0","lessThan":"5.10","versionType":"semver","status":"unaffected"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.57","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"6.19.12","lessThanOrEqual":"6.19.*","versionType":"semver","status":"unaffected"},{"version":"7.0","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-16T15:13:04.391952Z","id":"CVE-2026-31771","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"NVD-CWE-noinfo"}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-125"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.19.12","matchCriteriaId":"5C6630F4-82C7-43EE-A9AC-FF59BBAEEDD1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*","matchCriteriaId":"F253B622-8837-4245-BCE5-A7BF8FC76A16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*","matchCriteriaId":"4AE85AD8-4641-4E7C-A2F4-305E2CD9EE64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*","matchCriteriaId":"F666C8D8-6538-46D4-B318-87610DE64C34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*","matchCriteriaId":"02259FDA-961B-47BC-AE7F-93D7EC6E90C2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*","matchCriteriaId":"58A9FEFF-C040-420D-8F0A-BFDAAA1DF258"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*","matchCriteriaId":"1D2315C0-D46F-4F85-9754-F9E5E11374A6"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/1e4b738dd0d0f7b237686167706badad9d30649c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/2b2bf47cd75518c36fa2d41380e4a40641cc89cd","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/86c8d07a64d553c41e213b52650020010f9ef23e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ac7889b0fe441e4ef892c40b1d002e91f93fa4ae","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/dbc8b8d33c9e19e17e8b8b1361bbb46e2983f5f2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fbea63d0d301edd4a42f4390b49b8519d78b802d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}