Commit Graph

56 Commits

Author SHA1 Message Date
Petr Menšík
c059ccceef Update built-in root anchors from named.root.key
Remove original bind.keys and replace it with sourced file. Ensure it is
converted into header by deleting original header before the build.

Resolves: RHEL-131887
2026-09-02 16:09:02 +02:00
Petr Menšík
1917c3972b Add new root key 38696 into package files
Add KSK 2024 into bind package files too.

Resolves: RHEL-131887
2026-09-02 16:08:49 +02:00
Petr Menšík
b156480fe2 Remove downstream introduced double-free
Resolves: RHEL-189754
CVE: CVE-2026-5950
2026-08-27 10:46:27 +02:00
Petr Menšík
c0c7a338f8 [9.18] [CVE-2026-3592] sec: usr: Limit resolver server list size
When resolving a domain with many nameservers that share overlapping IP addresses (e.g., 10 NS records all pointing at the same set of addresses), BIND could previously waste time querying duplicate addresses and build up excessively large server lists. Deduplicate addresses in the resolver's server list so that each unique IP is only queried once per resolution attempt, regardless of how many NS records point to it and cap the number of addresses stored per nameserver name to 6 (combined A and AAAA), preventing memory and CPU overhead from domains with unusually large NS/glue sets.

Closes isc-projects/bind9#5641

RH:
No tests are backported, because python tests in this version does not have have
a good enough support for it.

Resolves: RHEL-189746
CVE: CVE-2026-3592
2026-08-21 11:16:13 +02:00
Petr Menšík
0797544ba7 [9.18] [CVE-2026-5950] sec: usr: Avoid unbounded recursion loop
A bug during bad server handling could cause the resolver to enter an infinite loop, continuously sending queries to an upstream server with no exit condition, until the resolver query timeout was hit. This has been fixed.

ISC would like to thank Billy Baraja (BielraX) for bringing this issue to our attention.

Closes isc-projects/bind9#5804

Resolves: RHEL-189754
CVE: CVE-2026-5950
2026-08-19 17:36:36 +02:00
Fedor Vorobev
70300196d0 Add upstream test suite as a separate plan 2026-08-17 17:36:15 +02:00
Fedor Vorobev
7aa8c869aa Add rpz system test changes for CVE-2026-11331
Resolves: RHEL-213770
2026-08-17 17:36:15 +02:00
Fedor Vorobev
6552b1bbc7 Add unit test to the patch for CVE-2026-11721
Resolves: RHEL-213419
2026-08-17 17:36:15 +02:00
RHEL Packaging Agent
86102be48e Fix CVE-2026-10723: NSEC3 signer validation
Backport upstream fix for CVE-2026-10723 which validates that
NSEC3 record signers match the owning zone. This prevents a
child zone from impersonating its parent and forging NXDOMAIN
responses for sibling domains. The patch adds signer
validation in lib/dns/dnssec.c and updates the NSEC3 error
description string in lib/isc/result.c.

CVE: CVE-2026-10723
Upstream patches:
 - c9cb6a5e24.patch
Resolves: RHEL-213500

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-08-17 17:36:15 +02:00
RHEL Packaging Agent
3131ed6b45 Fix CVE-2026-13321: reject out-of-zone NSEC next owner names
Add patch to reject out-of-zone NSEC next owner names during
DNSSEC verification. When verifying DNSSEC records, the patch
ensures that the next owner name of an NSEC record is a
subdomain of the signer field, following RFC 4034 section
4.1.1. The RETERR() macro calls in the new code were replaced
with inline error handling to match the dns_dnssec_verify
function's existing conventions.

CVE: CVE-2026-13321
Upstream patches:
 - 058023c66f.patch
 - f751e19a30.patch
Resolves: RHEL-213312

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-08-17 17:36:15 +02:00
RHEL Packaging Agent
8b5e09c342 Fix CVE-2026-11622: cache exhaustion via dns_slabheaders
Backport upstream commit 231b1ca3ed ("Make the dns_slabheaders
in the cache reference counted") to bind 9.18.29 to fix
CVE-2026-11622. The patch adds reference counting to
dns_slabheaders so stale headers can be reclaimed independently
of their enclosing node, preventing cache exhaustion.

The new patch (Patch232: bind-9.18-CVE-2026-11622.patch)
modifies lib/dns/rbtdb.c, lib/dns/include/dns/rdataslab.h,
and bin/tests/system/reclimit/tests.sh.

CVE: CVE-2026-11622
Upstream patches:
 - 231b1ca3ed.patch
Resolves: RHEL-213388

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-08-17 17:36:15 +02:00
RHEL Packaging Agent
8683bfa74b Fix CVE-2026-11721: reject invalid signed wildcard records
Backport fix for CVE-2026-11721 to bind9.18-9.18.29. Invalid
signed wildcard records (RRSIG with fewer labels than the
signer name requires) were being accepted, allowing cache
poisoning via forged wildcard owner names.

Two upstream commits were cherry-picked and combined into
Patch232 (bind-9.18-CVE-2026-11721.patch):
- 15089066b1: core validation fix in lib/dns/dnssec.c and
  lib/dns/rdata/generic/rrsig_46.c
- 1a4986e253: dnssec-signzone fix in
  bin/dnssec/dnssec-signzone.c

CVE: CVE-2026-11721
Upstream patches:
 - 15089066b1.patch
 - 1a4986e253.patch
Resolves: RHEL-213419

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-08-17 17:36:15 +02:00
RHEL Packaging Agent
63924ba134 Fix RPZ wildcard expansion self-referential CNAME (CVE-2026-11331)
Backport fix for CVE-2026-11331 from upstream commit dc328a199f.
The patch modifies query_rpzcname() in lib/ns/query.c to ensure
that when a wildcard expansion results in a name-too-long error,
the YXDOMAIN response code is set and the function properly
returns, rather than falling through to create a self-referential
CNAME.

CVE: CVE-2026-11331
Upstream patches:
 - dc328a199f.patch
Resolves: RHEL-213770

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-08-17 17:36:13 +02:00
RHEL Packaging Agent
73495a511e Fix CVE-2026-13204: assertion crash via unsigned NSEC/NSEC3
Add patch for CVE-2026-13204 which fixes a denial of service
vulnerability where dns_rdataset_addnoqname() could accept
unsigned NSEC/NSEC3 records, leading to assertion failures.
The upstream fix replaces RUNTIME_CHECK assertions with
graceful error handling in rbtdb.c, resolver.c, and query.c,
and hardens rdatalist.c to only accept signed records. The
patch includes an additional fix for query.c where the
upstream CHECK() macro was replaced with explicit inline
error handling to use the correct error label.

CVE: CVE-2026-13204
Upstream patches:
 - 48f5aa5fb3.patch
Resolves: RHEL-213494

This commit was backported by Ymir, a Red Hat Enterprise Linux software maintenance AI agent.

Assisted-by: Ymir
2026-08-17 17:35:49 +02:00
Petr Menšík
9777154579 [9.18] [CVE-2026-5946] sec: usr: Disable recursion, UPDATE, and NOTIFY for non-IN views
Recursion, dynamic updates (UPDATE), and zone change notifications
(NOTIFY) are now disabled for views with a class other than IN
(such as CHAOS or HESIOD); authoritative service for non-IN zones
(e.g. version.bind in class CHAOS) continues to work as before.
Servers configured with recursion yes in a non-IN view will log a
warning at startup, and named-checkconf flags the same condition.
UPDATE and NOTIFY messages that specify the meta-classes ANY or NONE
in the question section are now rejected with FORMERR.

This addresses a set of closely related security issues collectively
identified as CVE-2026-5946. ISC would like to thank Mcsky23 for
bringing these issues to our attention.

Resolves-Vulnerability: CVE-2026-5946
Resolves: RHEL-177754
2026-06-29 13:28:25 +02:00
Petr Menšík
26c2056564 [9.18] [CVE-2026-3039] sec: usr: Fix GSS-API resource leak
Fixed a memory leak where each GSS-API TKEY negotiation leaked a security context inside the GSS library. An unauthenticated attacker could exhaust server memory by sending repeated TKEY queries to a server with tkey-gssapi-keytab configured. The leaked memory was allocated by the GSS library, bypassing BIND's memory accounting.

Multi-round GSS-API negotiation (GSS_S_CONTINUE_NEEDED) is now rejected, as BIND never supported it correctly and Kerberos/SPNEGO completes in a single round.

Also implemented missing RFC 3645 requirement: the client now verifies that mutual authentication and integrity flags are granted by the GSS-API mechanism (Section 3.1.1).

Resolves-Vulnerability: CVE-2026-3039
Resolves: RHEL-177772
2026-06-29 13:27:22 +02:00
Petr Menšík
620ead311b [9.18] [CVE-2026-1519] sec: usr: Fix unbounded NSEC3 iterations when validating referrals to unsigned delegations
DNSSEC-signed zones may contain high iteration-count NSEC3 records,
which prove that certain delegations are insecure. Previously, a
validating resolver encountering such a delegation processed these
iterations up to the number given, which could be a maximum of 65,535.
This has been addressed by introducing a processing limit, set at 150.
Now, if such an NSEC3 record is encountered, the delegation will be
treated as insecure.

ISC would like to thank Samy Medjahed/Ap4sh for bringing this
vulnerability to our attention.

Closes isc-projects/bind9#5708

Resolves-Vulnerability: CVE-2026-1519
2026-04-17 13:12:50 +02:00
Petr Menšík
589b40e66e Fix test plans location 2026-04-09 13:00:04 +02:00
Fedor Vorobev
74b13daf07 Backport fixes for stale CNAME chains.
Resolves: RHEL-86172
2026-02-26 12:22:46 +01:00
Fedor Vorobev
460d921456 Backport fix for manual DNSSEC key rolllovers.
Resolves: RHEL-144422
2026-02-03 17:51:14 +01:00
Petr Menšík
787f3b0143 fixup! Add forgotten _libdir/named into bind-chroot tmpfiles
Correct changelog version of previous change

Resolves: RHEL-132054
2026-01-29 17:42:13 +01:00
Petr Menšík
96872e970a Add forgotten _libdir/named into bind-chroot tmpfiles
One of libdir directories was forgotten. It is the directory containing
the actual plugin, might cause issues if filter-aaaa.so plugin is used.

Resolves: RHEL-132054
2026-01-28 11:37:48 +01:00
Petr Menšík
0b27904541 Add sysusers named user creation (rhbz#2105415)
Drop original user creating in favor of sysusers file definition.

(cherry picked from commit 071ec07d27989a8d548834292fa46ca2312b4862)
(cherry picked from commit efb20ad8e740aafb410c0609fe94551135f2054b)

Resolves: RHEL-132054
(cherry picked from commit 4f18fb958fc3108bdca4c8192f7872db02c49673)
2025-12-17 15:05:13 +01:00
Petr Menšík
daeb550803 Add missing bind-chroot subdirectories
Fix also changelog date ordering.

Resolves: RHEL-132054
2025-12-12 21:51:01 +01:00
Petr Menšík
3ddca50846 Create /var/named directories for bind-chroot
Fixes bind-chroot in Image Mode.

Resolves: RHEL-132054
2025-12-12 18:14:53 +01:00
Petr Menšík
2657a462a4 Copy named.* into /usr/share/named
Imagemode might have separate /var partition not properly initialized by
package installation. Add creation of compat files into tmpfiles.d
definition.

Make copies of those files from /var/named to /usr/shared/named, so we
even have some place to symlink them from. Originally it had only copy
in sample documentation, which may not be installed.

These source file should be read-only from named and not modified
anyway. Copy them to /usr/share/named as read-only, always present
sources. Make symlinks in /var/named to point to them only when files
are missing.

To maximize backward compatibility, make copies and avoid replacing
those files with symlinks.

Resolves: RHEL-122168
2025-11-11 16:54:08 +01:00
Petr Menšík
85e46e131a Fix unreliable dispatch unit test
Resolves: RHEL-126470
2025-11-10 19:01:00 +01:00
Petr Menšík
81b8e58565 Add test case into dnssec system test for new regression
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/11195

Resolves: RHEL-123329
2025-11-10 19:00:54 +01:00
Petr Menšík
24fc81e1c8 Fix regression in upstream CVE-2025-8677 fix
https://gitlab.isc.org/isc-projects/bind9/-/issues/5570
https://gitlab.isc.org/isc-projects/bind9/-/issues/5622

Resolves: RHEL-123329
2025-11-10 19:00:46 +01:00
Petr Menšík
c5512bd8f1 Prevent cache poisoning due to weak PRNG (CVE-2025-40780)
https://kb.isc.org/docs/cve-2025-40780

Unmodified upstrem patch

Resolves: RHEL-123329
2025-11-10 19:00:10 +01:00
Petr Menšík
03804737c1 Address various spoofing attacks (CVE-2025-40778)
https://kb.isc.org/docs/cve-2025-40778

Resolves: RHEL-123329
2025-11-10 18:59:58 +01:00
Petr Menšík
cbe3a493d7 Prevent malformed DNSKEY to overload CPU (CVE-2025-8677)
Unmodified upstream patches.

https://kb.isc.org/docs/cve-2025-8677

Resolves:  RHEL-123329
2025-11-10 18:59:31 +01:00
Petr Menšík
d76c467fa2 logrotate: skip if empty and remove old variants
Many variants are never built anymore. Clean actions to just those still
shipped. But do not trigger named reload when named.run file is empty.
That is common on freeipa installation, where configuration changes
logging to put it elsewhere. named reload is disruptive because how
bind-dyndb-ldap behaves during reloads. Avoid unnecessary reloads with
visible service disruption.

Keep named-pkcs11 reload variant.

Resolves: RHEL-113968
2025-09-12 15:52:16 +02:00
Petr Mensik
94baf80eaa Add extra protections to places needing absolute names
Insert just potential protection in case Patch32 does not cover all
possible cases.

Resolves: RHEL-96648
2025-08-13 17:23:36 +02:00
Petr Mensik
8d563fc828 Prevent name.c:670: REQUIRE((name1->attributes & 0x00000001) == (name2->attributes & 0x00000001)) failed
resume_qmin did not handle special case of recursing query hit
unexpected DNS_R_CNAME result. Change result to SERVFAIL in case
of a zone loaded after the recursion started. That prevents crashing
later in query_setorder, where there is uninitialized foundname compared
with absolute order names.

https://gitlab.isc.org/isc-projects/bind9/-/issues/5357
Resolves: RHEL-96648
2025-06-12 14:55:51 +02:00
Petr Menšík
1c6949770d [9.18] [CVE-2024-12705] sec: usr: DNS-over-HTTP(s) flooding fixes
Fix DNS-over-HTTP(S) implementation issues that arise under heavy
query load. Optimize resource usage for :iscman:`named` instances
that accept queries over DNS-over-HTTP(S).

Previously, :iscman:`named` would process all incoming HTTP/2 data
at once, which could overwhelm the server, especially when dealing
with clients that send requests but don't wait for responses. That
has been fixed. Now, :iscman:`named` handles HTTP/2 data in smaller
chunks and throttles reading until the remote side reads the
response data. It also throttles clients that send too many requests
at once.

Additionally, :iscman:`named` now carefully processes data sent by
some clients, which can be considered "flooding." It logs these
clients and drops connections from them.
:gl:`#4795`

In some cases, :iscman:`named` could leave DNS-over-HTTP(S)
connections in the `CLOSE_WAIT` state indefinitely. That also has
been fixed. ISC would like to thank JF Billaud for thoroughly
investigating the issue and verifying the fix.
:gl:`#5083`

Vulnerability: CVE-2024-12705
Resolves: RHEL-76868
2025-03-13 16:29:50 +01:00
Petr Menšík
642b920266 [9.18] [CVE-2024-11187] sec: usr: Limit the additional processing for large RDATA sets
When answering queries, don't add data to the additional section if the answer has more
than 13 names in the RDATA. This limits the number of lookups into the database(s) during
a single client query, reducing query processing load.

Vulnerability: CVE-2024-11187
Resolves: RHEL-76889
2025-03-13 16:29:50 +01:00
Petr Menšík
433bab66ec Fix PIE patching from Fedora
Seems broken since last rebase build.

Related: RHEL-76331
2025-01-31 19:12:43 +01:00
Petr Menšík
a7a280de1f Backport also some tests into upstream testsuite
nsupdate new parameters needs some testing too.

Resolves: RHEL-76331
2025-01-31 19:12:43 +01:00
Petr Menšík
5adfd22bd5 Update nsupdate manual with new TLS parameters
Resolves: RHEL-76331
2025-01-31 19:12:34 +01:00
Petr Menšík
7065a4d280 Backport TLS functionality into nsupdate
Resolves: RHEL-76331
2025-01-31 19:12:07 +01:00
Petr Sklenar
20d3dd3f31 Update plans.fmf 2024-08-26 14:27:06 +00:00
Petr Sklenar
c0f9aed60a Update plans.fmf 2024-08-26 14:02:54 +00:00
Petr Menšík
9624174731 Update to 9.18.29
- Tighten max-recursion-queries and add max-query-restarts configuration statement.
- Raise the log level of priming failures.
- Bug fixes

https://downloads.isc.org/isc/bind9/9.18.29/doc/arm/html/notes.html#notes-for-bind-9-18-29

Resolves: RHEL-53015
2024-08-21 21:05:27 +02:00
Petr Menšík
f99cb1dfd6 Rebase to 9.18.28
https://downloads.isc.org/isc/bind9/9.18.27/doc/arm/html/notes.html#notes-for-bind-9-18-27

Fixes vulnerabilities: CVE-2023-4408 CVE-2023-50387 CVE-2023-50868 CVE-2023-5517 CVE-2023-5679

Resolves: RHEL-53015
2024-08-06 14:13:45 +02:00
Petr Menšík
2226a2052d Try to return context: back to plan
component is used in tests/bind tests to choose correct requirements for
otherwise shared tests. Try to put context propagated from original
package to those tests.

Do not use public repo import, but (re)define it manually to keep
context propagated.
2024-06-20 15:55:43 +02:00
psklenar@redhat.com
3de841dcbd c10s: fmf plans and gatying for RHEL CI
(cherry picked from commit 5b9483bf9549def17eab8c79c5c5b807e80a72bd)
2024-06-20 13:54:22 +02:00
Petr Menšík
21bc9027a3 Remove separate license subpackage
Move license to libs subpackage, it is required for everything except
documentation. Include license file in docs and bind-libs, avoid extra
package just for single file.

Resolves: RHEL-14898
2024-06-19 20:49:11 +02:00
Petr Menšík
298856fa52 Conflict explicitly with more bind subpackages
List conflicts for each package explicitly, if it should conflict.

Resolves: RHEL-14898
2024-06-19 20:48:40 +02:00
Petr Menšík
4fe5ea3a33 Disable building of DLZ modules
They are not wanted or needed for RHEL.

Resolves: RHEL-14898
2024-06-19 20:47:32 +02:00