Bug 1646637 (CVE-2018-18765)

Summary: CVE-2018-18765 mongoose: heap-based buffer over-read in mg_mqtt_next_subscribe_topic
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aquini, cbyrne, cmacedo, cz172638, dffrench, drusso, ffotorel, jmadigan, jshepherd, lgriffin, ngough, pwright, trepel
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-08 07:18:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1646638, 1646639    
Bug Blocks: 1646643    

Description Laura Pardo 2018-11-05 19:30:39 UTC
A flaw was found in Cesanta Mongoose 6.13. An arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality. It is a heap-based buffer over-read in mg_mqtt_next_subscribe_topic. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of service. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability. 


References:
https://github.com/TiffanyBlue/PoCbyMyself/blob/master/mongoose6.13/mqtt/Cesanta%20Mongoose%20MQTT%20mg_mqtt_next_subscribe_topic%20heap%20buffer%20overflow.md

Comment 1 Laura Pardo 2018-11-05 19:31:31 UTC
Created mongoose tracking bugs for this issue:

Affects: epel-6 [bug 1646638]
Affects: fedora-all [bug 1646639]

Comment 2 Jason Shepherd 2019-08-08 04:40:03 UTC
This vulnerability is out of security support scope for the following product:

 * Red Hat Mobile Application Platform

 Please refer to https://access.redhat.com/support/policy/updates/rhmap for more details

Comment 3 Product Security DevOps Team 2019-08-08 07:18:22 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-18765