Eclipse Mosquitto v2.1.2及之前版本Will载荷截断致未初始化内存泄露
CVE-2026-130491: Eclipse Mosquitto: Uninitialised heap disclose in CONNECT through Will payload truncation
MQTT 开发者必读:libmosquitto 大载荷处理缺陷可导致未初始化内存泄露。请检查是否使用了 2.1.2 及以下版本,若涉及长遗嘱消息需立即升级以修复此安全漏洞。
Posted by Roger Light on Nov 17
由 Roger Light 发布于 11 月 17 日
Severity: Medium
严重程度:中等
Affected versions:
受影响版本:
1.5 to 2.0.22 inclusive
1.5 至 2.0.22(含)
2.1.0 to 2.1.2 inclusive
2.1.0 至 2.1.2(含)
Description:
描述:
If a client using libmosquitto attempts to set a Will message using
如果使用 libmosquitto 的客户端尝试使用
mosquitto_will_set*() and the payload is >65535 bytes, the payload
mosquitto_will_set*() 设置遗嘱消息,且有效载荷大于 65535 字节,则不会拒绝该有效载荷。
will not be rejected. len mod 65535 uninitialised bytes will be sent
len mod 65535 未初始化的字节将作为 CONNECT 数据包的一部分发送,导致数据包格式错误。
as part of the CONNECT packet, and the packet will be malformed.
Credits: Yifan Xie
致谢:Yifan Xie
References:...
参考资料:...
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力