Skip to content

Conversation

@zephyrbot
Copy link

@zephyrbot zephyrbot commented Nov 28, 2024

Backport 16669ec~5..16669ec from #82072.

Fixes #82139

If the packet parsing fails in dns_unpack_response_query(), then
do not continue further but bail out early.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit eb2550a)
Make sure we test malformed packet parsing.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit 6f96915)
Make sure that when copying the qname, the source buffer is large
enough for the data.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit 43c2b9c)
The dns_unpack_answer() did not check the length of the message
properly which can cause out of bounds read.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit 6e7fcff)
Make sure we catch invalid answer during parsing.

Signed-off-by: Jukka Rissanen <[email protected]>
(cherry picked from commit 16669ec)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Networking labels Nov 28, 2024
@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 9, 2024
@dkalowsk dkalowsk merged commit 2fe01e9 into v4.0-branch Dec 9, 2024
29 of 30 checks passed
@dkalowsk dkalowsk deleted the backport-82072-to-v4.0-branch branch December 9, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Networking Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants