# CVE-2026-31771: Bluetooth: hci\_event: move wake reason storage into validated event handlers

- Priority: **Routine**
- Reason: Not severe (CVSS 8.1, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-01 · Modified: 2026-10-30
- Aliases: UBUNTU-CVE-2026-31771, DEBIAN-CVE-2026-31771, CGA-2fpj-5vpg-prr5, CGA-2wvh-mcmw-vcx2, CGA-3jxw-972h-r77h, CGA-3r6v-rcxr-58q4, CGA-42hc-7h5w-73jv, CGA-4g36-m8hm-phvf, CGA-4vjc-3vxq-2gpw, CGA-58x4-vq9v-rprm, CGA-5hm2-q7wm-qh4c, CGA-65wx-xpqr-9w2c, CGA-6789-hc9g-7hcx, CGA-7h59-p8hw-fwgq, CGA-8489-2qqh-22hf, CGA-866r-cq64-8phq, CGA-88m5-f7j4-x7mw, CGA-8v7h-8fxv-8x54, CGA-9q6w-23cc-xqhg, CGA-9r5c-f2hr-4r5x, CGA-9rr9-7j22-jpmw, CGA-cjj2-qp66-94g9, CGA-cqfv-pp22-cwr9, CGA-g46f-996v-qcjg, CGA-gc6h-cr5m-j67r, CGA-gvf7-2h6w-76mh, CGA-hhrh-w8v9-xhhw, CGA-hm75-2m8j-w3hf, CGA-hx98-hw49-hmgw, CGA-j5h5-vqqj-9vr9, CGA-j7g8-3675-2pvw, CGA-m2g5-g34j-6qv8, CGA-m2px-7w6g-722w, CGA-m346-vrjp-jcqf, CGA-mwg2-x5rw-69m8, CGA-qmpx-6jgj-967j, CGA-qx93-37q5-vwr4, CGA-r6h5-3285-qqjp, CGA-rh9q-35rc-3xf4, CGA-rhc9-6j2m-p6qf, CGA-rr8p-6c2q-4vph, CGA-vqfv-c68w-h546, CGA-vv8r-29fg-hqm7, CGA-x9c5-h8q2-pfwq, CGA-xcq4-x84x-j95g, CGA-xvqm-6fr7-hxcc, CGA-fhjr-j7rj-xfcf, CGA-mmvg-x7mf-26qr, CGA-3xfx-9vxp-7fh2, CGA-hf47-h3gj-f85v, CGA-p296-8j6g-9mgr, CGA-qxg7-fmcf-2vh6, CGA-wvh7-2574-26q7, CGA-f6jc-v98v-cg5v, CGA-jxwr-p9pv-cmqw, CGA-qp76-vxvr-p4c7, CGA-fpqw-h3fx-4w5p, CGA-j525-h82x-fpp3
- Record: https://cvemate.com/vulnerability/CVE-2026-31771 · JSON: https://cvemate.com/vulnerability/CVE-2026-31771/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hci_event: move wake reason storage into validated event handlers

hci_store_wake_reason() is called from hci_event_packet() immediately
after stripping the HCI event header but before hci_event_func()
enforces the per-event minimum payload length from hci_ev_table.
This means a short HCI event frame can reach bacpy() before any bounds
check runs.

Rather than duplicating skb parsing and per-event length checks inside
hci_store_wake_reason(), move wake-address storage into the individual
event handlers after their existing event-length validation has
succeeded. Convert hci_store_wake_reason() into a small helper that only
stores an already-validated bdaddr while the caller holds hci_dev_lock().
Use the same helper after hci_event_func() with a NULL address to
preserve the existing unexpected-wake fallback semantics when no
validated event handler records a wake address.

Annotate the helper with __must_hold(&hdev->lock) and add
lockdep_assert_held(&hdev->lock) so future call paths keep the lock
contract explicit.

Call the helper from 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(), and
hci_le_past_received_evt().
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.335%, percentile 28.814%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 184)

- chainguard linux-aws-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): All versions (No fix recorded) \| \< 6.18.64-r1
- chainguard linux-aws-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-bootc (Chainguard): All versions (No fix recorded) \| \< 6.18.64-r1
- chainguard linux-aws-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-nestkvm-boot-installed (Chainguard): All versions (No fix recorded) \| \< 6.18.64-r1
- chainguard linux-azure-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-firecracker-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-gcp-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-gcp-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-gcp-6.18-bootc (Chainguard): All versions (No fix recorded)

## References (first 20 of 23)

- <https://git.kernel.org/stable/c/86c8d07a64d553c41e213b52650020010f9ef23e>
- <https://git.kernel.org/stable/c/2b2bf47cd75518c36fa2d41380e4a40641cc89cd>
- <https://ubuntu.com/security/CVE-2026-31771>
- <https://www.cve.org/CVERecord?id=CVE-2026-31771>
- <https://git.kernel.org/linus/2b2bf47cd75518c36fa2d41380e4a40641cc89cd>
- <https://ubuntu.com/security/notices/USN-8781-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-31771>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31771.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31771>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>
- <https://git.kernel.org/stable/c/dbc8b8d33c9e19e17e8b8b1361bbb46e2983f5f2>
- <https://git.kernel.org/stable/c/1e4b738dd0d0f7b237686167706badad9d30649c>
- <https://git.kernel.org/stable/c/ac7889b0fe441e4ef892c40b1d002e91f93fa4ae>
- <https://git.kernel.org/stable/c/fbea63d0d301edd4a42f4390b49b8519d78b802d>
- <https://ubuntu.com/security/notices/USN-9173-1>
- <https://ubuntu.com/security/notices/USN-9175-1>
- <https://ubuntu.com/security/notices/USN-9174-1>
- <https://ubuntu.com/security/notices/USN-9183-1>
- <https://ubuntu.com/security/notices/USN-9173-2>
- <https://ubuntu.com/security/notices/USN-9192-1>

---

Data as of 2026-12-06T04:32:55.393Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
