Descrizione
An issue was discovered in the MQTT input plugin in Fluent Bit through 1.0.4. When this plugin acts as an MQTT broker (server), it mishandles incoming network messages. After processing a crafted packet, the plugin's mqtt_packet_drop function (in /plugins/in_mqtt/mqtt_prot.c) executes the memmove() function with a negative size parameter. That leads to a crash of the whole Fluent Bit server via a SIGSEGV signal.
Tipo di vulnerabilità
CWE-681
Incorrect Conversion between Numeric Types
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.
Impatto sui sistemi
| Ambito | Impatto |
| Altro, Integrità |
Stato imprevisto, Degradare la qualità |
Come si previene
Sviluppo
Avoid making conversion between numeric types. Always check for the allowed ranges.
Tutte le 122 CVE di tipo CWE-681, con andamento e prevenzione