-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential OOB Writes in eclipse/paho.mqtt.embedded-c #242
Milestone
Comments
pat1
added a commit
to r-map/rmap
that referenced
this issue
Feb 24, 2024
Ryan-CW-Code
added a commit
to Ryan-CW-Code/RyanMqtt
that referenced
this issue
Jun 4, 2024
Ryan-CW-Code
added a commit
to Ryan-CW-Code/RyanMqtt
that referenced
this issue
Jun 4, 2024
Ryan-CW-Code
added a commit
to Ryan-CW-Code/RyanMqtt
that referenced
this issue
Jun 4, 2024
…qtt.embedded-c#242" This reverts commit 5a7b046.
pearmaster
pushed a commit
to pearmaster/paho.mqtt.embedded-c
that referenced
this issue
Oct 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Raised first here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=577965
Created attachment 287734 [details]
poc.c
Project and Version:
eclipse/paho.mqtt.embedded-c, latest master branch (commit 29ab2aa)
Location:
MQTTPacket/src/MQTTSubscribeServer.c:MQTTDeserialize_subscribe()
Description:
In MQTTDeserialize_subscribe(), the index is not checked when writing into the array
topicFilters
andrequestedQoSs
: the maximum length (stored inmaxcount
) of these two buffers is not even checked by the function, which may lead to OOB writes of any length when processing a malformed packet.Steps to Reproduce:
poc.c
Environment:
Linux 5.11.0-40-generic #44
20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux20.04) 9.3.0gcc: gcc (Ubuntu 9.3.0-17ubuntu1
The text was updated successfully, but these errors were encountered: