CVE-2026-31771·Kernel vulnerability
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().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.12
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.34% — higher than 26% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31771 scores 8.1 on CVSS, so a successful attack would be serious — but at 0.34%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.10
Until: 6.19.12
Fixed in: 6.19.12
How to fix this CVE
Update your Linux kernel to version 6.19.12 or later to patch a Bluetooth subsystem vulnerability that could allow local attackers to trigger memory corruption through malformed HCI events. Verify your current kernel version and apply the latest stable update from your distribution's repository. Systems running kernel versions 5.10 through 6.19.11 should prioritize this update, particularly if Bluetooth functionality is enabled.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Determine if Bluetooth is enabled: lsmod | grep bluetooth
- Search kernel logs for Bluetooth HCI event handling errors: sudo dmesg | grep -i 'hci.*event\|bacpy\|payload'
- Verify the patch was applied by checking kernel version is 6.19.12 or later: uname -r | awk -F. '{print ($1>6 || ($1==6 && $2>19) || ($1==6 && $2==19 && $3>=12))}'
- Confirm Bluetooth subsystem is operational post-update: sudo systemctl status bluetooth
FAQ
What is CVE-2026-31771?
This vulnerability exists in the Linux kernel's Bluetooth HCI event handler, where wake-address validation occurs after payload length checks are bypassed. Malformed Bluetooth packets with insufficient data can trigger out-of-bounds memory operations, leading to information disclosure or system crashes.
Is CVE-2026-31771 being actively exploited?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, the high CVSS score (8.1) indicates significant risk if exploited locally.
What versions of Kernel are affected by CVE-2026-31771?
Linux kernel versions 5.10 through 6.19.11 are affected. Kernel 6.19.12 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2026-31771?
Run `uname -r` to check your kernel version. If it returns a version between 5.10 and 6.19.11, your system is vulnerable and requires an immediate kernel update.
Does Defensia detect CVE-2026-31771?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31771 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1e4b738dd0d0f7b237686167706badad9d30649c
- https://git.kernel.org/stable/c/2b2bf47cd75518c36fa2d41380e4a40641cc89cd
- https://git.kernel.org/stable/c/86c8d07a64d553c41e213b52650020010f9ef23e
- https://git.kernel.org/stable/c/ac7889b0fe441e4ef892c40b1d002e91f93fa4ae
- https://git.kernel.org/stable/c/dbc8b8d33c9e19e17e8b8b1361bbb46e2983f5f2
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31771. Free for 1 server.
Get started free