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 v3.7-branch] DNS parsing issues #82288

Open
wants to merge 5 commits into
base: v3.7-branch
Choose a base branch
from

Conversation

zephyrbot
Copy link
Collaborator

@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
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: To do
Development

Successfully merging this pull request may close these issues.

3 participants