-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
lib: updatehub: Improve security #24154
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't mention CVE or ZEPSEC numbers in the commit text.
b574278
to
f97d8be
Compare
Done! Could delete msg. |
f97d8be
to
96f7696
Compare
A malformed JSON payload that is received from an UpdateHub server may trigger memory corruption in the Zephyr OS. This could result in a denial of service in the best case, or code execution in the worst case. Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
cba58f0
to
db2914c
Compare
We decide postpone SLAB right now and focus on fix the security issues first. The SLAB solution will be added with other improvements soon. For us, decrease the memory footprint is a requirement to allow use of UpdateHub over BLE and IEEE 802.15.4. |
db2914c
to
e77e1f8
Compare
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
Use bin2hex instead inline conversion. Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
Improve buffer overflow security on probe_cb. This ensures that socket buffer have fixed lenght and content received by COAP fills properly on metadata buffer. After that, ensures that metadata content is a valid string with length lower than metadata size. Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
e77e1f8
to
bc1493a
Compare
There are some issues related to security on UpdateHub and this address the following fixes:
Remove all heap allocations and update stacks sizesFixes #24212