CVE-2026-141511
Description
A flaw was found in Mongoose. An unauthenticated remote attacker can crash the application by sending a malformed Message Queuing Telemetry Transport (MQTT) SUBSCRIBE packet. The application fails to properly validate datagram boundaries when parsing topic length fields, leading to an out-of-bounds memory read. This allows an attacker to trigger an invalid memory access and cause a Denial of Service (DoS).
Statement
Red Hat has rated this vulnerability as Important because an unauthenticated remote attacker can exploit it to cause a total loss of service availability without requiring prior authentication or user interaction. If Mongoose is deployed as an MQTT broker, processing a malformed SUBSCRIBE packet leads to an out-of-bounds memory read and crashes the daemon. Products that do not implement or expose the MQTT server functionality of Mongoose are not affected.
Mitigation
Restrict network access to the MQTT server to trusted IP addresses or internal networks using firewalld.
To remove public exposure on the standard MQTT port (1883/tcp):
firewall-cmd --permanent --zone=public --remove-port=1883/tcp
firewall-cmd --reload
Caveats: Limiting network exposure prevents untrusted remote clients from interacting with the MQTT service, reducing the attack surface.
Warning: Reloading firewall rules reapplies configuration settings and may temporarily disrupt existing network connections.
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.
Confidentiality
Technical Impact: Bypass Protection Mechanism
Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.
Other
Technical Impact: Varies by Context
The read operation could produce other undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.