Skip to content
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

Fix string prop OOB read #394

Merged
merged 2 commits into from
Feb 23, 2024
Merged

Fix string prop OOB read #394

merged 2 commits into from
Feb 23, 2024

Conversation

embhorn
Copy link
Member

@embhorn embhorn commented Feb 2, 2024

Check status and full size of MqttDecode_String against buf length.

Also check all lengths before calling MqttDecode_Vbi

Fixes zd17257

OSS-Fuzz #46212: wolfMQTT: Out-of-bounds read on i386

@embhorn embhorn self-assigned this Feb 2, 2024
@embhorn embhorn requested a review from philljj February 2, 2024 19:53
@embhorn embhorn assigned philljj and unassigned embhorn Feb 2, 2024
philljj
philljj previously approved these changes Feb 2, 2024
Copy link
Contributor

@philljj philljj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just waiting on Guido's feedback.

@embhorn
Copy link
Member Author

embhorn commented Feb 23, 2024

Fix has been confirmed by Guido

philljj

This comment was marked as resolved.

@philljj philljj merged commit c923292 into wolfSSL:master Feb 23, 2024
11 checks passed
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.

2 participants