Skip to content

Update mbed-coap to version 5.1.3 #12124

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

Closed
wants to merge 2 commits into from
Closed

Update mbed-coap to version 5.1.3 #12124

wants to merge 2 commits into from

Conversation

ristohuhtala
Copy link
Contributor

@ristohuhtala ristohuhtala commented Dec 17, 2019

Description

Fix for overflow errors

Summary of changes

Added check that returned int16 value wont overflow when creating new CoAP message
Changed buffer handling when CoAP message is parsed. Now every time before pointer value increased, buffer size is checked to avoid overflow.

Impact of changes

Migration actions required

Documentation


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[x] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@anttiylitokola @yogpan01


@kjbracey
Copy link
Contributor

BTW is this the best place to send mbed-coap updates? Isn't there still a master repo elsewhere?

@ciarmcom ciarmcom requested review from anttiylitokola, yogpan01 and a team December 17, 2019 14:00
@ciarmcom
Copy link
Member

@ristohuhtala, thank you for your changes.
@anttiylitokola @yogpan01 @ARMmbed/mbed-os-maintainers please review.

@ristohuhtala
Copy link
Contributor Author

ristohuhtala commented Dec 17, 2019

BTW is this the best place to send mbed-coap updates? Isn't there still a master repo elsewhere?

As first timer in this, did this wrong way. Will create new version from mbed-coap and update this PR

@kjbracey
Copy link
Contributor

I'll go and make some comments on the relevant PRs over in the mbed-coap repo. Some of it's just "style", but the changes have a couple of real issues. Would be good to address before taking an update.

@JanneKiiskila
Copy link
Contributor

@bulislaw @adbridge @0xc0170 - for 5.15.1

@ristohuhtala ristohuhtala changed the title Bug fix for CVE-2019-17212 and CVE-2019-17211 Update mbed-coap to version 5.1.3 Dec 19, 2019
Change how uint16 overflow is detected
@ristohuhtala
Copy link
Contributor Author

Updated mbed-coap changelog.md file. Also did changes requested to logic to detect overflow. Also updated PR title to be in similar format as in previous mbed-coap update PRs.

@adbridge
Copy link
Contributor

@ristohuhtala thank you for the PR. Instead of putting something like 'Fix for IOTCLT-3748 CVE-2019-17211 - mbed-coap integer overflow' in the summary of changes , could you instead please provide a brief summary of what the actual issue is and then add how it was fixed? Also please split this into 2 separate PRs. There should be only one fix per PR (https://os.mbed.com/docs/mbed-os/v5.15/contributing/workflow.html#guidelines-for-github-pull-requests) .

@ristohuhtala
Copy link
Contributor Author

ristohuhtala commented Dec 20, 2019

@ristohuhtala thank you for the PR. Instead of putting something like 'Fix for IOTCLT-3748 CVE-2019-17211 - mbed-coap integer overflow' in the summary of changes , could you instead please provide a brief summary of what the actual issue is and then add how it was fixed? Also please split this into 2 separate PRs. There should be only one fix per PR (https://os.mbed.com/docs/mbed-os/v5.15/contributing/workflow.html#guidelines-for-github-pull-requests) .

@adbridge Thanks for link. This was very first PR to mbed-os for me. Will put your link to my bookmarks.
I updated this PR to be updating mbed-coap to version 5.1.3. Also updated PR description.

@ristohuhtala
Copy link
Contributor Author

Talked with @yogpan01 , would good to push each error fix as separate version. Will close this and create new for new ones

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 2, 2020

@ristohuhtala As this was an update from upstream repository, it was fine as it was (considering the upstream version was already updated). As the mbed-coap is in the different repository, changes should be applied there at first. An update to Mbed OS after.

I'll review the split PRs now to get them in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants