29311 Commits
Author SHA1 Message Date
Tinderbox User ac3f4eb88b Merge branch 'prep-release' into v9_11_31-release v9.11.31 2021-04-19 14:10:40 +00:00
Tinderbox User 9dee474b53 prep 9.11.31 2021-04-19 14:10:09 +00:00
Michał Kępień 972081d888 Merge branch 'michal/prepare-documentation-for-bind-9.11.31' into 'v9_11_31-release'
Prepare documentation for BIND 9.11.31

See merge request isc-private/bind9!289
2021-04-19 13:45:06 +00:00
Michał Kępień eae5bd30f9 Prepare release notes for BIND 9.11.31 2021-04-19 15:37:02 +02:00
Michał Kępień 0f99a900e1 Merge branch '2634-fix-handling-undefined-GSS_SPNEGO_MECHANISM-macro-v9_11_31' into v9_11_31-release 2021-04-19 14:38:31 +02:00
Michał Kępień 25b5a63dc7 Add CHANGES entry
(cherry picked from commit 86a3b8e269)
2021-04-19 14:36:46 +02:00
Michał Kępień c13c0cd581 Fix handling undefined GSS_SPNEGO_MECHANISM macro
BIND 9 attempts to look up GSSAPI OIDs for the Kerberos 5 and SPNEGO
mechanisms in the relevant header files provided by the Kerberos/GSSAPI
library used.  Due to the differences between various Kerberos/GSSAPI
implementations, if any of the expected preprocessor macros
(GSS_KRB5_MECHANISM, GSS_SPNEGO_MECHANISM) is not defined in the header
files provided by the library used, the code in lib/dns/gssapictx.c
defines its own version of each missing macro, so that BIND 9 can
attempt to use the relevant security mechanisms anyway.

Commit 7f08c756aa, which contains a
partial backport of the changes introduced in commit
978c7b2e89, left a block of code in the
lib/dns/include/dst/gssapi.h header which defines the
GSS_SPNEGO_MECHANISM preprocessor macro to NULL if it is not defined by
any header file provided by the Kerberos/GSSAPI library used.  This
causes the gss_add_oid_set_member() call in the mech_oid_set_create()
helper function to always return an error.  This in turn causes the
dst_gssapi_acquirecred() function to also always return an error, which
ultimately prevents any named instance whose configuration includes the
"tkey-gssapi-credential" option from starting.

Remove the offending conditional definition of the GSS_SPNEGO_MECHANISM
preprocessor macro from lib/dns/include/dst/gssapi.h, so that a proper
GSSAPI OID is assigned to that macro in lib/dns/gssapictx.c when the
Kerberos/GSSAPI library used does not define it.

(cherry picked from commit 870701c336)
2021-04-19 14:36:46 +02:00
Michał Kępień 9fa496e5aa Roll back unnecessary libtool updates
Commit 7f08c756aa inadvertently included
libtool updates which were unrelated to the removal of custom SPNEGO
code.  Roll these updates back to avoid confusion.

(cherry picked from commit ca42d0c93f)
2021-04-19 14:36:46 +02:00
Tinderbox User 5d2f72c900 Merge branch 'prep-release' into v9_11_30-release 2021-04-12 13:44:41 +00:00
Tinderbox User 866f0f5f8b prep 9.11.30 2021-04-12 13:44:15 +00:00
Michał Kępień 96e12ef942 Merge branch 'michal/prepare-documentation-for-bind-9.11.30' into 'security-v9_11'
Prepare documentation for BIND 9.11.30

See merge request isc-private/bind9!286
2021-04-12 13:10:15 +00:00
Michał Kępień ff4a203668 Prepare release notes for BIND 9.11.30 2021-04-12 15:04:48 +02:00
Michał Kępień edee20ea5b Tweak and reword release notes 2021-04-12 15:04:48 +02:00
Michał Kępień 8960e1fa9f Tweak and reword recent CHANGES entries 2021-04-12 15:04:48 +02:00
Michał Kępień feac973151 Merge branch '2604-confidential-issue-spnego-v9_11' into 'security-v9_11'
[CVE-2021-25216] [v9_11] Documentation for ZDI-CAN-13347: ISC BIND TKEY Query Integer Overflow Remote Code Execution Vulnerability

See merge request isc-private/bind9!284
2021-04-12 13:04:03 +00:00
Michał Kępień d8fd919e78 Add release note for [GL #2604] 2021-04-12 15:00:03 +02:00
Michał Kępień 1eb42cb840 Add CHANGES entry for [GL #2604] 2021-04-12 15:00:03 +02:00
Michał Kępień 582a1fd9ad Merge branch '2540-confidential-issue-existing-dname-v9_11' into 'security-v9_11'
[CVE-2021-25215] [v9_11] Properly answer queries for DNAME records that require the DNAME to be processed to resolve itself

See merge request isc-private/bind9!282
2021-04-12 12:57:16 +00:00
Mark AndrewsandMichał Kępień b8cebf6c3f Add Release Notes entry for [GL #2540] 2021-04-12 14:55:10 +02:00
Mark AndrewsandMichał Kępień 41d3422872 Add CHANGES entry for [GL #2540] 2021-04-12 14:55:10 +02:00
Mark AndrewsandMichał Kępień c44cbe80c6 Handle DNAME lookup via itself
When answering a query, named should never attempt to add the same RRset
to the ANSWER section more than once.  However, such a situation may
arise when chasing DNAME records: one of the DNAME records placed in the
ANSWER section may turn out to be the final answer to a client query,
but there is no way to know that in advance.  Tweak the relevant INSIST
assertion in query_find() so that it handles this case properly.  The
rdataset is freed later anyway, so there is no need to clean it up
immediately.
2021-04-12 14:55:10 +02:00
Michał Kępień 2333587298 Merge branch '2467-confidential-issue-ixfr-checks-v9_11' into 'security-v9_11'
[CVE-2021-25214] [v9_11] Prevent malformed incoming zone transfers from producing a zone without an SOA record

See merge request isc-private/bind9!263
2021-04-12 12:53:45 +00:00
Mark AndrewsandMichał Kępień 18f2e765b3 Add release note for [GL #2467] 2021-04-08 13:26:34 +02:00
Mark AndrewsandMichał Kępień cd733c2285 Add CHANGES entry for [GL #2467] 2021-04-08 13:26:34 +02:00
Mark AndrewsandMichał Kępień 7663e4eb55 Unload a zone if a transfer breaks its SOA record
If a zone transfer results in a zone not having any NS records, named
stops serving it because such a zone is broken.  Do the same if an
incoming zone transfer results in a zone lacking an SOA record at the
apex or containing more than one SOA record.
2021-04-08 13:26:34 +02:00
Mark AndrewsandMichał Kępień 4be889f60e Address inconsistencies in checking added RRsets
loading_addrdataset() rejects SOA RRsets which are not at top of zone.
addrdataset() should similarly reject such RRsets.
2021-04-08 13:26:34 +02:00
Mark AndrewsandMichał Kępień 1108fc49ed Check SOA owner names in zone transfers
An IXFR containing SOA records with owner names different than the
transferred zone's origin can result in named serving a version of that
zone without an SOA record at the apex.  This causes a RUNTIME_CHECK
assertion failure the next time such a zone is refreshed.  Fix by
immediately rejecting a zone transfer (either an incremental or
non-incremental one) upon detecting an SOA record not placed at the apex
of the transferred zone.
2021-04-08 13:26:34 +02:00
Michał Kępień bca041aa5b Merge branch '2620-free-resources-when-gss_accept_sec_context-fails-v9_11' into 'v9_11'
[v9_11] Free resources when gss_accept_sec_context() fails

See merge request isc-projects/bind9!4876
2021-04-08 09:26:56 +00:00
Michał Kępień 3726321304 Add CHANGES entry
(cherry picked from commit 7eb87270a4)
2021-04-08 11:04:42 +02:00
Michał Kępień dc1ed88776 Free resources when gss_accept_sec_context() fails
Even if a call to gss_accept_sec_context() fails, it might still cause a
GSS-API response token to be allocated and left for the caller to
release.  Make sure the token is released before an early return from
dst_gssapi_acceptctx().

(cherry picked from commit d954e152d9)
2021-04-08 11:04:21 +02:00
Michał Kępień 0c04b83106 Merge branch 'michal/fix-triggering-rules-for-the-tarball-create-job-v9_11' into 'v9_11'
[v9_11] Fix triggering rules for the "tarball-create" job

See merge request isc-projects/bind9!4872
2021-04-07 20:37:25 +00:00
Michał Kępień ba106468a9 Fix triggering rules for the "tarball-create" job
Commit de35d321f0 (a backport of commit
4d5d3b75da) did not account for the fact
that the "tarball-create" GitLab CI job is not created for manually
triggered pipelines.  This prevents manual pipeline creation from
succeeding as it causes the "gcc:tarball" job to have unsatisfied
dependencies.  Make sure the "tarball-create" job is created for
manually triggered pipelines to allow such pipelines to be started
again.

(cherry picked from commit 233294d750)
2021-04-07 22:34:15 +02:00
Diego dos Santos Fronza e4d6bf4434 Merge branch '2582-threadsanitizer-data-race-lib-dns-zone-c-10272-7-in-zone_maintenance-v9_11' into 'v9_11'
Resolve TSAN data race in zone_maintenance

See merge request isc-projects/bind9!4868
2021-04-07 14:47:29 +00:00
Diego Fronza e2e6fd4fa0 Resolve TSAN data race in zone_maintenance
Fix race between zone_maintenance and dns_zone_notifyreceive functions,
zone_maintenance was attempting to read a zone flag calling
DNS_ZONE_FLAG(zone, flag) while dns_zone_notifyreceive was updating
a flag in the same zone calling DNS_ZONE_SETFLAG(zone, ...).

The code reading the flag in zone_maintenance was not protected by the
zone's lock, to avoid a race the zone's lock is now being acquired
before an attempt to read the zone flag is made.
2021-04-07 10:48:12 -03:00
Ondřej Surý 58808db133 Merge branch '2607-remove-custom-spnego-v9_11' into 'v9_11'
Remove custom ISC SPNEGO implementation (v9.11)

See merge request isc-projects/bind9!4857
2021-04-01 14:14:58 +00:00
Mark AndrewsandOndřej Surý 858b2aaf00 Add CHANGES and release note for GL #2607 2021-04-01 16:12:41 +02:00
Ondřej SurýandOndřej Surý 224ce9e0c0 Move the dummy shims to single ifndef GSSAPI block
Previously, every function had it's own #ifdef GSSAPI #else #endif block
that defined shim function in case GSSAPI was not being used.  Now the
dummy shim functions have be split out into a single #else #endif block
at the end of the file.

This makes the gssapictx.c similar to 9.17.x code, making the backports
and reviews easier.
2021-04-01 10:39:48 +02:00
Mark AndrewsandOndřej Surý 57de8df75b Add Heimdal compatibility support
The Heimdal Kerberos library handles the OID sets in a different manner.
Unify the handling of the OID sets between MIT and Heimdal
implementations by dynamically creating the OID sets instead of using
static predefined set.  This is how upstream recommends to handle the
OID sets.
2021-04-01 10:39:48 +02:00
Mark AndrewsandOndřej Surý 383297f80b Request krb5 CFLAGS and LIBS from $KRB5_CONFIG
The GSSAPI now needs both gssapi and krb5 libraries, so we need to
request both CFLAGS and LIBS from the configure script.
2021-04-01 10:39:48 +02:00
Mark AndrewsandOndřej Surý 7f08c756aa Remove custom ISC SPNEGO implementation
The custom ISC SPNEGO mechanism implementation is no longer needed on
the basis that all major Kerberos 5/GSSAPI (mit-krb5, heimdal and
Windows) implementations support SPNEGO mechanism since 2006.

This commit removes the custom ISC SPNEGO implementation, and removes
the option from both autoconf and win32 Configure script.  Unknown
options are being ignored, so this doesn't require any special handling.
2021-04-01 10:39:48 +02:00
Mark AndrewsandOndřej Surý 0e9cd93c06 Handle expected signals in tsiggss authsock.pl script
When the authsock.pl script would be terminated with a signal,
it would leave the pidfile around.  This commit adds a signal
handler that cleanups the pidfile on signals that are expected.
2021-04-01 10:19:33 +02:00
Michal Nowak 4034b703fd Merge branch 'mnowak/web-run-gcc-tarball-ci-job-v9_11' into 'v9_11'
[v9_11] Run gcc:tarball CI job in web-triggered pipelines

See merge request isc-projects/bind9!4853
2021-03-31 15:04:22 +00:00
Michal Nowak de35d321f0 Run gcc:tarball CI job in web-triggered pipelines
The gcc:tarball CI job may identify problems with tarballs created by
"make dist" of the tarball-create CI job. Enabling the gcc:tarball CI
job in web-triggered pipelines provides developers with a test vector.

(cherry picked from commit 4d5d3b75da)
2021-03-31 16:55:34 +02:00
Michal Nowak 697e0c1178 Merge branch 'v9_11_29-release' into 'v9_11'
Merge 9.11.29 release branch

See merge request isc-projects/bind9!4822
2021-03-19 09:38:22 +00:00
Michal Nowak 136fc17bd3 Set up release notes for BIND 9.11.30 2021-03-18 18:27:34 +01:00
Michal Nowak 9dbd9c7abd Bump BIND_BASELINE_VERSION for ABI checks 2021-03-18 18:08:28 +01:00
Tinderbox User a35739f6ad Merge branch 'prep-release' into v9_11_29-release v9.11.29 2021-03-09 12:49:28 +00:00
Tinderbox User c06787e095 prep 9.11.29 2021-03-09 12:49:04 +00:00
Michal Nowak 8253f9829f Merge branch 'mnowak/prepare-documentation-for-bind-9.11.29' into 'v9_11_29-release'
Prepare documentation for BIND 9.11.29

See merge request isc-private/bind9!268
2021-03-09 09:18:13 +00:00
Michal Nowak ac1c862bb9 Prepare release notes for BIND 9.11.29 2021-03-08 18:28:02 +01:00