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

bt: shell: Fix possible overflows #60465

Merged
merged 4 commits into from
Jul 20, 2023

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Jul 17, 2023

Fix possible overflows for invalid inputs.

subsys/bluetooth/host/conn.c Outdated Show resolved Hide resolved
subsys/bluetooth/mesh/shell/rpr.c Outdated Show resolved Hide resolved
Flavio Ceolin added 3 commits July 17, 2023 13:36
Check in bt_conn_le_start_encryption if the given
ltk fits in bt_conn.ltk before copying it.

Signed-off-by: Flavio Ceolin <[email protected]>
Check the size of the search argument in cmd_mcc_send_search_raw
before copying it.

Signed-off-by: Flavio Ceolin <[email protected]>
Check the size of the search argument in cmd_media_set_search
before copying it.

Signed-off-by: Flavio Ceolin <[email protected]>
subsys/bluetooth/mesh/shell/rpr.c Outdated Show resolved Hide resolved
Fix possible overflow in rpr_scan_report.

Signed-off-by: Flavio Ceolin <[email protected]>
@fabiobaltieri fabiobaltieri merged commit ddd2bc9 into zephyrproject-rtos:main Jul 20, 2023
17 checks passed
@jgl-meta jgl-meta added the backport v3.4-branch Backport to the v3.4-branch label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants