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 v2.7-branch] DNS parsing issues #82392

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

Conversation

TaiJuWu
Copy link
Member

@TaiJuWu TaiJuWu commented Dec 2, 2024

Backport #82072 to v2.7

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]>
Make sure we test malformed packet parsing.

Signed-off-by: Jukka Rissanen <[email protected]>
Make sure that when copying the qname, the source buffer is large
enough for the data.

Signed-off-by: Jukka Rissanen <[email protected]>
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]>
Make sure we catch invalid answer during parsing.

Signed-off-by: Jukka Rissanen <[email protected]>
@github-actions github-actions bot added area: Networking area: Tests Issues related to a particular existing or missing test labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Tests Issues related to a particular existing or missing test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants