Description
The Bluetooth Mesh Firmware Distribution Server handles Receivers Get in handle_receivers_get() (subsys/bluetooth/mesh/dfd_srv.c). This handler limits the number of returned entries with MIN(cnt, srv->target_cnt - first), where first is the First Index taken from the message. When first is greater than srv->target_cnt, the subtraction is negative after integer promotion. The MIN() macro then returns that negative value, and storing it in the uint16_t cnt wraps it to a large count. The loop then reads srv->targets[first + i] with no bound other than the response buffer's tailroom.
Any mesh node holding an application key bound to the Firmware Distribution Server model can trigger this. Within radio or relay range, it sends a 4-byte Receivers Get message whose First Index is beyond the current receiver count. For example, any non-zero index when no receivers are configured, which is the default state. Because First Index can be as large as 65535, the reads can land up to roughly 1.3 MB past the targets array (with the default CONFIG_BT_MESH_DFD_SRV_TARGETS_MAX of 8).
The server copies bit fields from the out-of-bounds memory into the Receivers List response and sends it to the requester. This leaks fragments of adjacent device RAM. A large index can also make the read hit unmapped or protected memory and fault, crashing the distributor node. The fix sends an empty list when First Index is out of range, as the Mesh DFU specification requires.
Any mesh node holding an application key bound to the Firmware Distribution Server model can trigger this. Within radio or relay range, it sends a 4-byte Receivers Get message whose First Index is beyond the current receiver count. For example, any non-zero index when no receivers are configured, which is the default state. Because First Index can be as large as 65535, the reads can land up to roughly 1.3 MB past the targets array (with the default CONFIG_BT_MESH_DFD_SRV_TARGETS_MAX of 8).
The server copies bit fields from the out-of-bounds memory into the Receivers List response and sends it to the requester. This leaks fragments of adjacent device RAM. A large index can also make the read hit unmapped or protected memory and fault, crashing the distributor node. The fix sends an empty list when First Index is out of range, as the Mesh DFU specification requires.
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
Advisories
No advisories yet.
References
History
Sun, 06 Dec 2026 15:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | The Bluetooth Mesh Firmware Distribution Server handles Receivers Get in handle_receivers_get() (subsys/bluetooth/mesh/dfd_srv.c). This handler limits the number of returned entries with MIN(cnt, srv->target_cnt - first), where first is the First Index taken from the message. When first is greater than srv->target_cnt, the subtraction is negative after integer promotion. The MIN() macro then returns that negative value, and storing it in the uint16_t cnt wraps it to a large count. The loop then reads srv->targets[first + i] with no bound other than the response buffer's tailroom. Any mesh node holding an application key bound to the Firmware Distribution Server model can trigger this. Within radio or relay range, it sends a 4-byte Receivers Get message whose First Index is beyond the current receiver count. For example, any non-zero index when no receivers are configured, which is the default state. Because First Index can be as large as 65535, the reads can land up to roughly 1.3 MB past the targets array (with the default CONFIG_BT_MESH_DFD_SRV_TARGETS_MAX of 8). The server copies bit fields from the out-of-bounds memory into the Receivers List response and sends it to the requester. This leaks fragments of adjacent device RAM. A large index can also make the read hit unmapped or protected memory and fault, crashing the distributor node. The fix sends an empty list when First Index is out of range, as the Mesh DFU specification requires. | |
| Title | Out-of-bounds read in Bluetooth Mesh Firmware Distribution Server Receivers Get handler | |
| Weaknesses | CWE-125 CWE-190 |
|
| References |
| |
| Metrics |
cvssV3_1
|
Subscriptions
No data.
Status: PUBLISHED
Assigner: zephyr
Published:
Updated: 2026-12-06T15:16:26.001Z
Reserved: 2026-10-08T07:25:36.415Z
Link: CVE-2026-107467
No data.
No data.
No data.
OpenCVE Enrichment
No data.