mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-12-04 22:08:27 +00:00
5ef5406a0c622f419b700c06b179b7be0a6c9925
Thanks to 전승훈 <snowjeon2@cau.ac.kr> for finding this bug, it's a repeat of the problems seen in CVE-2026-4891. Their explanation: In prove_non_existence_nsec() around line 1296 of dnssec.c, the second extract_name() call uses plen as its bound instead of psave+rdlen. So if a crafted NSEC record has a Next Domain Name that's longer than rdlen declares, extract_name() happily reads past the rdata boundary (still within the packet, so no crash), and then rdlen -= (p - psave) goes negative. The while (rdlen > 0) bitmap loop never runs, and the function returns 0 as if non-existence was proven, without ever checking the type bitmap.
Languages
C
94.3%
Perl
2.2%
HTML
1.2%
Shell
1%
Makefile
0.6%
Other
0.6%