GATT server crash via wrapped prepare-write length
Published Mar 9, 2022 · Updated Apr 15, 2026
Heap overflow in BlueZ before 5.63 allows attackers on an adjacent Bluetooth link to crash a GATT server with crafted prepare writes. In src/shared/gatt-server.c, append_prep_data stores the accumulated length in a 16-bit value, allowing it to wrap before realloc allocates a too-small buffer and memcpy writes beyond it. The vulnerable path requires an exposed GATT attribute that permits prepare writes; the upstream report found no such attribute enabled by default on Ubuntu.
Summary
What happened
Heap overflow in BlueZ before 5.63 allows attackers on an adjacent Bluetooth link to crash a GATT server with crafted prepare writes. In src/shared/gatt-server.c, append_prep_data stores the accumulated length in a 16-bit value, allowing it to wrap before realloc allocates a too-small buffer and memcpy writes beyond it. The vulnerable path requires an exposed GATT attribute that permits prepare writes; the upstream report found no such attribute enabled by default on Ubuntu.
The record
- CVE
- CVE-2022-0204
- Published
- Mar 9, 2022
- Updated
- Apr 15, 2026
- Vendor
- BlueZ Project
- Product
- BlueZ
- Classifications
- CWE-190, T1499
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 9, 2022CVE publishedPublication date reported by the CVE source.
- Apr 15, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=bluez versions prior to 5.63
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- double.c prepare-write proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo