Skip to content

Conversation

rlubos
Copy link
Contributor

@rlubos rlubos commented Aug 7, 2023

In case upper layer does not follow the convention, and the net_pkt provided to the nRF 15.4 driver had a payload larger than the maximum payload size of an individual 15.4 frame, the driver would end up with buffer overflow.

Fix this by adding an extra payload_len check before attempting to copy the payload to the internal buffer.

Fixes #61544

In case upper layer does not follow the convention, and the net_pkt
provided to the nRF 15.4 driver had a payload larger than the maximum
payload size of an individual 15.4 frame, the driver would end up with
buffer overflow.

Fix this by adding an extra payload_len check before attempting to copy
the payload to the internal buffer.

Signed-off-by: Robert Lubos <[email protected]>
@rlubos rlubos requested a review from tbursztyka as a code owner August 7, 2023 11:50
@rlubos rlubos requested review from ceolin and jukkar August 7, 2023 11:50
@fabiobaltieri fabiobaltieri requested a review from cfriedt October 2, 2023 15:51
@cfriedt cfriedt merged commit acc7cfa into zephyrproject-rtos:v2.7-branch Oct 2, 2023
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