{"id":"CVE-2026-113781","summary":"ESP-IDF: Buffer Overflow in BLE Mesh GATTS Read Callback Handler","details":"ESP-IDF is the Espressif Internet of Things (IoT) Development Framework. Prior to 5.2.8, 5.3.6, 5.5.6, and 6.0.3, the Bluedroid BLE Mesh GATT server read handler bt_mesh_bta_gatts_cb in esp_ble_mesh stores a signed attribute-read callback length in an unsigned 16-bit variable. A negative ATT error code is therefore interpreted as a very large successful length and used for a memory copy from a small stack buffer into the GATT response structure. A remote attacker within Bluetooth LE range who can connect to an exposed PB-GATT provisioning or Mesh Proxy service can trigger a failed attribute read with a crafted request. On devices where the affected attributes are accessible without pairing, exploitation requires neither pairing nor user interaction; access requirements depend on device configuration. The resulting out-of-bounds read and stack-based buffer overflow corrupts the Bluetooth host task stack, causing a crash and device restart and potentially further memory corruption. The issue affects devices built with CONFIG_BT_BLUEDROID_ENABLED=y and BLE Mesh GATT enabled; the NimBLE host path is not affected. This issue is fixed in versions 5.2.8, 5.3.6, 5.5.6, and 6.0.3.","aliases":["GHSA-rjvf-fxv5-x87j"],"modified":"2026-11-18T01:05:07.591154460Z","published":"2026-11-17T19:07:15.437Z","database_specific":{"cwe_ids":["CWE-195","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113781.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113781.json"},{"type":"FIX","url":"https://github.com/espressif/esp-idf/commit/00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca"},{"type":"FIX","url":"https://github.com/espressif/esp-idf/commit/2fed52c72944781562fb63b8be7b6d29f3cff97e"},{"type":"FIX","url":"https://github.com/espressif/esp-idf/commit/812f7de59efdf79529e1c10cd788d324fa05f10d"},{"type":"FIX","url":"https://github.com/espressif/esp-idf/commit/c146056e55815cad542aff640a21e3f94879dd6a"},{"type":"FIX","url":"https://github.com/espressif/esp-idf/commit/ce902a85135b0e069c125b11735aa8757fb528b2"},{"type":"FIX","url":"https://github.com/espressif/esp-idf/commit/f9da09de61e98c9074d5cb89d5b1b4c37739fa85"},{"type":"WEB","url":"https://github.com/espressif/esp-idf/releases/tag/v5.2.8"},{"type":"WEB","url":"https://github.com/espressif/esp-idf/releases/tag/v5.3.6"},{"type":"WEB","url":"https://github.com/espressif/esp-idf/releases/tag/v5.5.6"},{"type":"WEB","url":"https://github.com/espressif/esp-idf/releases/tag/v6.0.3"},{"type":"ADVISORY","url":"https://github.com/espressif/esp-idf/security/advisories/GHSA-rjvf-fxv5-x87j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113781"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/espressif/esp-idf","events":[{"introduced":"0"},{"last_affected":"9be74663d1f657ef3c736b5017c03f4b1532fe86"},{"fixed":"530b95fc293b465142dcb4bc82d55ef09d7ad9c0"},{"fixed":"79e3454c68248bd7d881721c9b2e94561378a8ce"},{"last_affected":"296b6eab9445fd720e71aecab961e2d3fbca9944"},{"fixed":"880a203ae603d08a94d06aa01e0d6761958e5e9e"},{"fixed":"76f5dedd9950a3012fee8fb7d5586df21fc67802"},{"fixed":"00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca"},{"fixed":"2fed52c72944781562fb63b8be7b6d29f3cff97e"},{"fixed":"812f7de59efdf79529e1c10cd788d324fa05f10d"},{"fixed":"c146056e55815cad542aff640a21e3f94879dd6a"},{"fixed":"ce902a85135b0e069c125b11735aa8757fb528b2"},{"fixed":"f9da09de61e98c9074d5cb89d5b1b4c37739fa85"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"last_affected":"5.1.7"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"5.2.0"},{"fixed":"5.2.8"}]},{"strategy":"StringRangeExpression","range":[{"introduced":"5.3.0"},{"fixed":"5.3.6"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"5.4.0"},{"last_affected":"5.4.4"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"strategy":"StringRangeExpression","range":[{"introduced":"5.5.0"},{"fixed":"5.5.6"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"6.0.0"},{"fixed":"6.0.3"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"2fed52c72944781562fb63b8be7b6d29f3cff97e"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"812f7de59efdf79529e1c10cd788d324fa05f10d"}]},{"range":[{"fixed":"c146056e55815cad542aff640a21e3f94879dd6a"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"ce902a85135b0e069c125b11735aa8757fb528b2"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"f9da09de61e98c9074d5cb89d5b1b4c37739fa85"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"530b95fc293b465142dcb4bc82d55ef09d7ad9c0"}],"source":"REFERENCES_TAG","original_tag":"v5.2.8"},{"range":[{"fixed":"79e3454c68248bd7d881721c9b2e94561378a8ce"}],"source":"REFERENCES_TAG","original_tag":"v5.3.6"},{"range":[{"fixed":"880a203ae603d08a94d06aa01e0d6761958e5e9e"}],"source":"REFERENCES_TAG","original_tag":"v5.5.6"},{"original_tag":"v6.0.3","range":[{"fixed":"76f5dedd9950a3012fee8fb7d5586df21fc67802"}],"source":"REFERENCES_TAG"}]}}],"versions":["v5.4.4","v5.1.7","v5.1","v5.4-beta2","v5.3","v5.3-rc1","v5.3-beta2","v5.3-beta1","v5.2-rc1","v5.2","v5.2-beta2","v5.2-beta1","v5.1-rc2","v5.1-rc1","v5.1-beta1","v5.2-dev","v5.0-beta1","v5.0-dev","v4.3-beta1","v4.3-dev","v4.2-dev","v4.1-dev","v4.0-dev","v3.3-beta2","v3.3-beta1","v3.2-beta1","v3.3-dev","v3.1-beta1","v3.2-dev","v3.1-dev","v2.1-rc1","v3.0-dev","v2.0-rc1","v1.0","v0.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-113781.json","vanir_signatures":[{"signature_type":"Line","signature_version":"v1","source":"https://github.com/espressif/esp-idf/commit/812f7de59efdf79529e1c10cd788d324fa05f10d","target":{"file":"components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c"},"deprecated":false,"digest":{"line_hashes":["217416237571293595965988690240126775091","2085065373462046675298005554800175062","178452018876115463035390971647887985410","289463753844708149055877064249397886486","266912752098346687463061584956851796050","30644288626404084786911501158417115536","221932321127162661916834183466278836064","85815129476353433121704801673827613663"],"threshold":0.9},"id":"CVE-2026-113781-59dc1ee7"},{"source":"https://github.com/espressif/esp-idf/commit/00adfb3cbcf9a4a9e6ff1a2b99937a253887f8ca","target":{"file":"components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c"},"deprecated":false,"digest":{"line_hashes":["217416237571293595965988690240126775091","2085065373462046675298005554800175062","178452018876115463035390971647887985410","289463753844708149055877064249397886486","266912752098346687463061584956851796050","30644288626404084786911501158417115536","221932321127162661916834183466278836064","85815129476353433121704801673827613663"],"threshold":0.9},"id":"CVE-2026-113781-6c1f08dd","signature_type":"Line","signature_version":"v1"},{"target":{"file":"components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c"},"deprecated":false,"digest":{"line_hashes":["217416237571293595965988690240126775091","2085065373462046675298005554800175062","178452018876115463035390971647887985410","289463753844708149055877064249397886486","266912752098346687463061584956851796050","30644288626404084786911501158417115536","221932321127162661916834183466278836064","85815129476353433121704801673827613663"],"threshold":0.9},"id":"CVE-2026-113781-7bbed934","signature_type":"Line","signature_version":"v1","source":"https://github.com/espressif/esp-idf/commit/c146056e55815cad542aff640a21e3f94879dd6a"},{"signature_version":"v1","source":"https://github.com/espressif/esp-idf/commit/f9da09de61e98c9074d5cb89d5b1b4c37739fa85","target":{"file":"components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c"},"deprecated":false,"digest":{"line_hashes":["217416237571293595965988690240126775091","2085065373462046675298005554800175062","178452018876115463035390971647887985410","289463753844708149055877064249397886486","266912752098346687463061584956851796050","30644288626404084786911501158417115536","221932321127162661916834183466278836064","85815129476353433121704801673827613663"],"threshold":0.9},"id":"CVE-2026-113781-7c594982","signature_type":"Line"},{"id":"CVE-2026-113781-d023e352","signature_type":"Line","signature_version":"v1","source":"https://github.com/espressif/esp-idf/commit/ce902a85135b0e069c125b11735aa8757fb528b2","target":{"file":"components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c"},"deprecated":false,"digest":{"line_hashes":["217416237571293595965988690240126775091","2085065373462046675298005554800175062","178452018876115463035390971647887985410","289463753844708149055877064249397886486","266912752098346687463061584956851796050","30644288626404084786911501158417115536","221932321127162661916834183466278836064","85815129476353433121704801673827613663"],"threshold":0.9}},{"target":{"file":"components/bt/esp_ble_mesh/core/bluedroid_host/adapter.c"},"deprecated":false,"digest":{"line_hashes":["217416237571293595965988690240126775091","2085065373462046675298005554800175062","178452018876115463035390971647887985410","289463753844708149055877064249397886486","266912752098346687463061584956851796050","30644288626404084786911501158417115536","221932321127162661916834183466278836064","85815129476353433121704801673827613663"],"threshold":0.9},"id":"CVE-2026-113781-ffcf8bd9","signature_type":"Line","signature_version":"v1","source":"https://github.com/espressif/esp-idf/commit/2fed52c72944781562fb63b8be7b6d29f3cff97e"}],"vanir_signatures_modified":"2026-11-18T01:05:07Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"}]}