Skip to content

Reject truncated DNS question trailers - #101

Open
virtuald wants to merge 2 commits into
mjansson:mainfrom
virtuald:fix/question-trailer-bounds
Open

Reject truncated DNS question trailers#101
virtuald wants to merge 2 commits into
mjansson:mainfrom
virtuald:fix/question-trailer-bounds

Conversation

@virtuald

@virtuald virtuald commented Aug 31, 2026

Copy link
Copy Markdown

The receive paths read QTYPE and QCLASS immediately after a parsed name without confirming that four bytes remained in the packet. Reject truncated questions before accessing their fixed trailer.

The receive paths read QTYPE and QCLASS immediately after a parsed name without confirming that four bytes remained in the packet. Reject truncated questions before accessing their fixed trailer.
@virtuald
virtuald force-pushed the fix/question-trailer-bounds branch from 62de162 to 7cd2633 Compare August 31, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant