Eclipse Mosquitto: Integer Overflow in Will Delay Comparator (CVE-2026-126763)
An integer overflow in the will_delay__cmp() function of Eclipse Mosquitto (versions 1.6.0 to 2.0.22 and 2.1.0 to 2.1.2) allows an MQTT v5.0 client to permanently suppress delayed Last Will and Testament messages by creating a will-delay-interval condition that corrupts the internal sort order of the broker's task list.
CVE search metadata
CVE search record: CVE-2026-126763. Severity: high. CVSS: 7.5. EPSS: 0.22%. KEV: no. Product: Eclipse Mosquitto. Brief: Eclipse Mosquitto: Integer Overflow in Will Delay Comparator (CVE-2026-126763). Brief link: https://feed.craftedsignal.io/briefs/2026-11-mosquitto-will-delay-dos-cve-2026-126763/
Triage facts
Revision 1- Applicability
- Eclipse Mosquitto
- Evidence
- Not observed
- Severity
- Low
- Sources
- 5 public sources
- Freshness
- Revision 1Nov 20, 00:10 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A2Roughly even chance
Overview
In Eclipse Mosquitto versions 1.6 to 2.0.22 and 2.1.0 to 2.1.2, the will_delay__cmp() function in src/will_delay.c contains an integer overflow vulnerability. An MQTT v5.0 client connecting with a will_delay_interval that subsequently disconnects with a shorter interval causes the broker's will_delay__check() function to encounter corrupted sort order, resulting in the suppression of all delayed will messages for other clients.
Attack Chain
- An MQTT v5.0 client connects to the broker with a specific
will_delay_interval. - The client disconnects with a shorter interval, triggering the
will_delay__cmp()comparator. - Due to an integer cast from
uint32_ttointwrapping to a negative value when the difference exceedsINT32_MAX, the internal linked list sort order is corrupted. - The
will_delay__check()function iterates through the list, encounters a future-dated entry, and terminates before processing subsequent entries.
Impact
Successful exploitation results in a Denial of Service (DoS) where delayed Last Will and Testament messages are suppressed across the broker. This impacts systems relying on disconnect notifications, such as IoT device health monitoring and safety-critical industrial control systems. The suppression persists until the broker process is restarted.
Recommendation
Replace the will_delay__cmp function with the pattern used in session_expiry__cmp() to correctly handle signed and unsigned integer comparisons. Additionally, update loop__update_next_event to cast the interval to time_t before multiplication. No specific fixed release version is confirmed in the provided source materials.