CVE-2016-9804
Medium · 5.3CVSS
5.3
EPSS
2.5%
Published
Dec 3, 2016
CISA due date
—
Cloudanix analysis
A bug in Bluetooth software can crash a diagnostic tool when it tries to read certain bad data files, interrupting troubleshooting work.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in commands_dump function in tools/parser/csr.c due to missing bounds checks on the commands array when reading from frm->ptr, causing hcidump to crash on malformed input.
Why it matters to the business
Interrupts Bluetooth debugging and packet capture analysis workflows by causing unexpected termination of the hcidump utility when handling untrusted or corrupted dump files.
How an attack unfolds
An attacker supplies a specially crafted corrupted CSR Bluetooth dump file containing oversized commands data; hcidump processes the file without bounds validation, overflowing the array and crashing the process.
How to fix it
Upgrade BlueZ to a version containing the fix for this buffer overflow; restrict hcidump usage to trusted input files only.
How to confirm the fix worked
Confirm BlueZ version exceeds 5.42; test hcidump with sample malformed CSR dumps to verify absence of crash.
Typical attack path
- Create or obtain a malformed dump file with data exceeding expected commands array size
- Invoke hcidump against the malicious file
- Trigger buffer overflow leading to denial of service crash
How to detect it
Search application and system logs for hcidump segmentation faults or abrupt terminations correlated with dump file processing; inspect recent file access patterns to the csr parser.
- hcidump
- commands_dump
- tools/parser/csr.c
- frm->ptr
What your security team should do
- Apply latest BlueZ updates across all affected systems
- Disable or sandbox hcidump when processing external files
- Review and harden Bluetooth diagnostic tooling in development and support environments
The record
In BlueZ 5.42, a buffer overflow was observed in "commands_dump" function in "tools/parser/csr.c" source file. The issue exists because "commands" array is overflowed by supplied parameter due to lack of boundary checks on size of the buffer from frame "frm->ptr" parameter. This issue can be triggered by processing a corrupted dump file and will result in hcidump crash.
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 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-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 Software Development Kit 12 SP3 | bluez | 0 | 5.13-5.4.1 |
| SUSE:Linux Enterprise Workstation Extension 12 SP3 | bluez | 0 | 5.13-5.4.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