Skip to content

Conversation

zephyrbot
Copy link

@zephyrbot zephyrbot commented Apr 26, 2022

Backport 6896075 from #45066

Fixes #46705

There is potential buffer overflow in pb adv.
If Transaction Continuation PDU comes before
Transaction Start PDU the last segment number is set to 0xff.
The current implementation has a strictly limited buffer size.
It is possible to receive malformed frame with wrong segment
number. All segments with number 2 and above will be stored
in the memory behind Rx buffer.

Signed-off-by: Aleksandr Khromykh <[email protected]>
(cherry picked from commit 6896075)
@PavelVPV PavelVPV requested a review from alxelax April 26, 2022 10:29
@joerchan joerchan requested a review from alwa-nordic April 26, 2022 11:30
@cfriedt
Copy link
Member

cfriedt commented May 24, 2022

@alxelax - can you please create an issue for the backport?

@cfriedt cfriedt merged commit 8c2965e into v2.7-branch Jun 20, 2022
@nashif nashif deleted the backport-45066-to-v2.7-branch branch April 6, 2023 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants