CVE-2016-9800
Medium · 5.3CVSS
5.3
EPSS
2.9%
Published
Dec 3, 2016
CISA due date
—
Cloudanix analysis
A flaw in the Bluetooth software on many Linux devices can let an attacker send bad data that makes the software crash or misbehave.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in pin_code_reply_dump caused by missing bounds checks on the pin array when processing an oversized pin_code_reply_cp frame parameter.
Why it matters to the business
Bluetooth-enabled Linux systems may experience crashes or memory corruption that disrupts device pairing and wireless connectivity services.
How an attack unfolds
An attacker sends a crafted HCI pin_code_reply packet containing an oversized pin value over a Bluetooth or local interface; the parser copies the data without checking length and overwrites adjacent memory.
How to fix it
Upgrade BlueZ to a version containing the boundary check fix; rebuild and restart the bluetoothd service after installation.
How to confirm the fix worked
Confirm BlueZ version is newer than 5.42 and that the pin_code_reply_dump function contains length validation; test with a packet capture tool to ensure oversized frames are rejected.
Typical attack path
- Identify a BlueZ 5.42 system reachable via Bluetooth or local HCI interface
- Craft and transmit an oversized pin_code_reply_cp frame
- Trigger the overflow in pin_code_reply_dump to corrupt memory
- Crash the daemon or attempt further memory manipulation
How to detect it
Review bluetoothd logs and system crash reports for segmentation faults around HCI parsing; inspect network captures for anomalous pin_code_reply frames with oversized pin fields.
- pin_code_reply_dump
- pin_code_reply_cp
- bluetoothd.*segfault
What your security team should do
- Immediately update all BlueZ installations to a patched release
- Disable Bluetooth services on systems that do not require them
- Monitor for unusual HCI traffic or repeated bluetoothd crashes
The record
In BlueZ 5.42, a buffer overflow was observed in "pin_code_reply_dump" function in "tools/parser/hci.c" source file. The issue exists because "pin" array is overflowed by supplied parameter due to lack of boundary checks on size of the buffer from frame "pin_code_reply_cp *cp" parameter.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | bluez | 0 | No fix |
| Debian:11 | bluez | 0 | No fix |
| Debian:12 | bluez | 0 | No fix |
| Debian:13 | bluez | 0 | No fix |
| Mageia:6 | bluez | 0 | 5.45-2.2.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP3 | bluez | 0 | 5.13-5.4.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Desktop 12 SP4 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 | bluez | 0 | 5.48-5.8.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 | bluez | 0 | 5.48-5.8.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | bluez | 0 | 5.13-3.10.1 |
| SUSE:Linux Enterprise Server 12 SP3 | bluez | 0 | 5.13-5.4.1 |
| SUSE:Linux Enterprise Server 12 SP3 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Server 12 SP4 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Server 12-LTSS | bluez | 0 | 5.13-3.10.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | bluez | 0 | 5.13-3.10.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | bluez | 0 | 5.13-5.4.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | bluez | 0 | 5.13-5.4.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP4 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | bluez | 0 | 5.13-5.4.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP4 | bluez | 0 | 5.13-5.7.1 |
| SUSE:Linux Enterprise Workstation Extension 15 | bluez | 0 | 5.48-5.8.1 |
| Ubuntu:20.04:LTS | bluez | 0 | No fix |
| Ubuntu:22.04:LTS | bluez | 0 | No fix |
| Ubuntu:24.04:LTS | bluez | 0 | No fix |
| Ubuntu:24.10 | bluez | 0 | No fix |
| Ubuntu:25.04 | bluez | 0 | No fix |
| Ubuntu:25.10 | bluez | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | bluez | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | bluez | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | bluez | 0 | No fix |
Related vulnerabilities
- CVE-2023-27349 BlueZ Audio Profile AVRCP Improper Validation of Array Index Remote Code Execution… Also affects bluez
- CVE-2023-45866 Bluetooth HID Hosts in BlueZ may permit an unauthenticated Peripheral role HID Device to… Also affects bluez
- CVE-2022-39176 BlueZ before 5.59 allows physically proximate attackers to obtain sensitive information… Also affects bluez
- CVE-2022-39177 BlueZ before 5.59 allows physically proximate attackers to cause a denial of service… Also affects bluez
- CVE-2022-0204 A heap overflow vulnerability was found in bluez in versions prior to 5.63. Also affects bluez
- CVE-2019-8921 An issue was discovered in bluetoothd in BlueZ through 5.48. Also affects bluez
- CVE-2019-8922 A heap-based buffer overflow was discovered in bluetoothd in BlueZ through 5.48. Also affects bluez
- CVE-2020-27153 In BlueZ before 5.55, a double free was found in the gatttool disconnect_cb() routine… Also affects bluez