]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[9.11][CVE-2024-1737] Add a limit to the number of RRs in RRSets
authorNicki Křížek <nicki@isc.org>
Wed, 24 Jul 2024 08:55:54 +0000 (08:55 +0000)
committerNicki Křížek <nicki@isc.org>
Wed, 24 Jul 2024 08:55:54 +0000 (08:55 +0000)
Previously, the number of RRs in the RRSets were internally unlimited.
As the data structure that holds the RRs is just a linked list, and
there are places where we just walk through all of the RRs, adding an
RRSet with huge number of RRs inside would slow down processing of said
RRSets.

The fix for end-of-life branches make the limit compile-time only for
simplicity and the limit can be changed at the compile time by adding
following define to CFLAGS:

    -DDNS_RDATASET_MAX_RECORDS=<limit>

Backport of https://gitlab.isc.org/isc-private/bind9/-/merge_requests/698

See isc-projects/bind9#3405

Merge branch '3405-limit-the-number-of-resource-records-in-rrset-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9169


Trivial merge