{"id":80547,"date":"2026-06-14T21:47:20","date_gmt":"2026-06-14T18:17:20","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-54412-mqtt-c-heap-out-of-bounds-read-and-integer-underflow\/"},"modified":"2026-06-14T21:47:20","modified_gmt":"2026-06-14T18:17:20","slug":"cve-2026-54412-mqtt-c-heap-out-of-bounds-read-and-integer-underflow","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-54412-mqtt-c-heap-out-of-bounds-read-and-integer-underflow\/","title":{"rendered":"CVE-2026-54412 &#8211; MQTT-C Heap Out-of-Bounds Read and Integer Underflow"},"content":{"rendered":"<p>CVE ID :CVE-2026-54412<\/p>\n<p>  Published : June 14, 2026, 6:17 p.m. | 1\u00a0hour, 18\u00a0minutes ago<\/p>\n<p>  Description :LiamBindle MQTT-C through version 1.1.6 contains a heap-based out-of-bounds read and integer underflow in the mqtt_unpack_publish_response() function in src\/mqtt.c that allows a remote unauthenticated attacker controlling an MQTT broker &#8211; or able to inject MQTT traffic into an unencrypted session &#8211; to crash a subscribed MQTT-C client and potentially disclose adjacent heap memory by sending a single crafted PUBLISH packet. The function validates only that the fixed-header remaining_length is at least 4, then reads the 16-bit topic_name_size field from the broker-controlled packet and advances the parse pointer by that value without verifying that topic_name_size plus the surrounding overhead fits within remaining_length; it subsequently computes application_message_size as remaining_length &#8211; topic_name_size &#8211; 2 (QoS 0) or &#8211; 4 (QoS greater than 0) in unsigned arithmetic, producing an integer underflow that is then passed to memmove(). A PUBLISH packet with topic_name_size = 0xFFFF and remaining_length = 7 advances the parse pointer 65535 bytes past the receive buffer (out-of-bounds read) and causes an application_message_size near 2^32, crashing the process when the resulting memmove() is executed.<\/p>\n<p>  Severity: 8.2 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-54412 Published : June 14, 2026, 6:17 p.m. | 1\u00a0hour, 18\u00a0minutes ago Description :LiamBindle MQTT-C through version 1.1.6 contains a heap-based out-of-bounds read and integer underflow in the mqtt_unpack_publish_response() function in src\/mqtt.c that allows a remote unauthenticated attacker controlling an MQTT broker &#8211; or able to inject MQTT traffic into an unencrypted session &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-80547","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=80547"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80547\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=80547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=80547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=80547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}