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

[Backport v2.4-branch] Bluetooth: L2CAP: Fix missing buffer length check for sdu_len #33514

Merged
merged 1 commit into from Mar 23, 2021

Conversation

zephyrbot
Copy link
Collaborator

Backport 0ba94379381f3e58994a94497c327d7cad9c1227~1..0ba94379381f3e58994a94497c327d7cad9c1227 from #32588

We should verify that the buffer has sufficient data before attempting
to parse the SDU length field. If we get a too short packet just
disconnect the channel.

Fixes #32497

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
@nashif nashif merged commit 3a06d3d into v2.4-branch Mar 23, 2021
@galak galak deleted the backport-32588-to-v2.4-branch branch June 10, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants