Simon Kelley 5ef5406a0c Fix possible DNSSEC bypass in prove_non_existence_nsec()
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.
2026-11-30 21:13:33 +00:00
2012-04-02 20:40:34 +01:00
2025-12-07 13:44:40 +00:00
2012-01-05 17:31:15 +00:00
2018-01-14 17:32:52 +00:00
2022-05-13 21:22:11 +01:00
2012-01-05 17:31:13 +00:00
2025-07-20 15:29:43 +01:00
2021-06-15 23:14:59 +01:00
2026-04-08 12:08:18 +01:00
2025-07-20 15:29:43 +01:00
2012-01-05 22:00:08 +00:00
S
Description
No description provided
GPL-2.0
6.6 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 94.3%
Perl 2.2%
HTML 1.2%
Shell 1%
Makefile 0.6%
Other 0.6%