Skip to content

DNS: Critical out-of-bounds read in the question skip loop #55

@braindigitalis

Description

@braindigitalis
while (pos < len && response[pos] != 0) { ... }
if (response[pos] == 0) pos++;
pos += 4;

If the while exits because pos == len, the code still evaluates response[pos] (OOB) in if (response[pos] == 0).
That’s a straightforward OOB read bug that can be triggered by a truncated message with qdcount > 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions