A vulnerability was discovered in NSD which could allow a local attacker to cause a Denial of Service condition.. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gentoo Linux Security Advisory GLSA 202101-38 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - https://security.gentoo.org/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Severity: Normal Title: NSD: Symbolic link traversal Date: January 29, 2021 Bugs: #758977 ID: 202101-38 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Synopsis ======= A vulnerability was discovered in NSD which could allow a local attacker to cause a Denial of Service condition. Background ========= An authoritative only, high performance, open source name server Affected packages ================ ------------------------------------------------------------------- Package / Vulnerable / Unaffected ------------------------------------------------------------------- 1 net-dns/nsd < 4.3.4 > = 4.3.4 Description ========== A local vulnerability was discovered that would allow for a local symlink attack due to how NSD handles PID files. Impact ===== A local attacker could cause a Denial of Service condition. Workaround ========= There is no known workaround at this time. Resolution ========= All NSD users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose "> =net-dns/nsd-4.3.4" References ========= [ 1 ] CVE-2020-28935 https://nvd.nist.gov/vuln/detail/CVE-2020-28935 [ 2 ] Upstream advisory https://www.nlnetlabs.nl/downloads/nsd/CVE-2020-28935.txt Availability =========== This GLSA and any updates to it are available for viewing at the Gentoo Security Website: https://security.gentoo.org/glsa/202101-38 Concerns? ======== Security is a primary focus ofGentoo Linux and ensuring the confidentiality and security of our users' machines is of utmost importance to us. Any security concerns should be addressed to
The package nsd before version 4.3.4-1 is vulnerable to denial of service. . Arch Linux Security Advisory ASA-202012-18 ========================================= Severity: Low Date : 2020-12-09 CVE-ID : CVE-2020-28935 Package : nsd Type : denial of service Remote : No Link : https://security.archlinux.org/AVG-1327 Summary ====== The package nsd before version 4.3.4-1 is vulnerable to denial of service. Resolution ========= Upgrade to 4.3.4-1. # pacman -Syu "nsd> =4.3.4-1" The problem has been fixed upstream in version 4.3.4. Workaround ========= None. Description ========== NLnet Labs Unbound, up to and including version 1.12.0, and NLnet Labs NSD, up to and including version 4.3.3, contain a local vulnerability that would allow for a local symlink attack. When writing the PID file, Unbound and NSD create the file if it is not there, or open an existing file for writing. In case the file was already present, they would follow symlinks if the file happened to be a symlink instead of a regular file. An additional chown of the file would then take place after it was written, making the user Unbound/NSD is supposed to run as the new owner of the file. If an attacker has local access to the user Unbound/NSD runs as, she could create a symlink in place of the PID file pointing to a file that she would like to erase. If then Unbound/NSD is killed and the PID file is not cleared, upon restarting with root privileges, Unbound/NSD will rewrite any file pointed at by the symlink. This is a local vulnerability that could create a Denial of Service of the system Unbound/NSD is running on. It requires an attacker having access to the limited permission user Unbound/NSD runs as and point through the symlink to a critical file on the system. Impact ===== A local attacker might be able to cause a denial of service ofthe host. References ========= https://www.nlnetlabs.nl/downloads/unbound/CVE-2020-28935.txt https://github.com/NLnetLabs/unbound/issues/303 https://nlnetlabs.nl/downloads/unbound/patch_cve-2020-28935_unbound.diff https://github.com/NLnetLabs/unbound/commit/ad387832979b6ce4c93f64fe706301cd7d034e87 https://github.com/NLnetLabs/unbound/commit/19f8f4d9f99a44906ab9dcc46d44da299fde3506 https://nlnetlabs.nl/downloads/nsd/patch_cve-2020-28935_nsd.diff https://github.com/NLnetLabs/nsd/commit/a4caec3137a1bc9eca05d38d66e2bce572ca9bd3 https://security.archlinux.org/CVE-2020-28935 . Arch Linux Alert regarding the bind package: service disruption vulnerability addressed in release 9.11.6-2.. Arch Linux, nsd package, denial of service. . Severity: Low. LinuxSecurity.com Team
An update that fixes two vulnerabilities is now available. . openSUSE Security Update: Security update for nsd ______________________________________________________________________________ Announcement ID: openSUSE-SU-2020:2222-1 Rating: moderate References: #1157331 #1179191 Cross-References: CVE-2019-13207 CVE-2020-28935 Affected Products: openSUSE Leap 15.2 openSUSE Leap 15.1 openSUSE Backports SLE-15-SP2 openSUSE Backports SLE-15-SP1 SUSE Package Hub for SUSE Linux Enterprise 12 ______________________________________________________________________________ An update that fixes two vulnerabilities is now available. Description: This update for nsd fixes the following issues: nsd was updated to the new upstream release 4.3.4 FEATURES: - Merge PR #141: ZONEMD RR type. BUG FIXES: - Fix that symlink does not interfere with chown of pidfile (boo#1179191, CVE-2020-28935) - Fix #128: Fix that the invalid port number is logged for sendmmsg failed: Invalid argument. - Fix #133: fix 0-init of local ( stack ) buffer. - Fix #134: IPV4_MINIMAL_RESPONSE_SIZE vs EDNS_MAX_MESSAGE_LEN. - Fix to add missing closest encloser NSEC3 for wildcard nodata type DS answer. - Fix #138: NSD returns non-EDNS answer when QUESTION is empty. - Fix #142: NODATA answers missin SOA in authority section after CNAME chain. New upstream release 4.3.3: FEATURES: - Follow DNS flag day 2020 advice and set default EDNS message size to 1232. - Merged PR #113 with fixes. Instead of listing an IP-address to listen on, an interface name can be specified in nsd.conf, with ip-address: eth0. The IP-addresses for that interface are then used. - New upstream release 4.3.2 FEATURES: - Fix #96: log-only-syslog: yes sets to only use syslog, fixes that the default configuration and systemd results in duplicate log messages. - Fix #107: nsd -v shows configure line, openssl version and libevent version. - Fix #103 with #110: min-expire-time option. To provide a lower bound for expire period. Expressed in number of seconds or refresh+retry+1. BUG FIXES: - Fix to omit the listen-on lines from log at startup, unless verbose. - Fix #97: EDNS unknown version: query not in response. - Fix #99: Fix copying of socket properties with reuseport enabled. - Document default value for tcp-timeout. - Merge PR#102 from and0x000: add missing default in documentation for drop-updates. - Fix unlink of pidfile warning if not possible due to permissions, nsd can display the message at high verbosity levels. - Removed contrib/nsd.service, example is too complicated and not useful. - Merge #108 from Nomis: Make the max-retry-time description clearer. - Retry when udp send buffer is full to wait until buffer space is available. - Remove errno reset behaviour from sendmmsg and recvmmsg replacement functions. - Fix unit test for different nsd-control-setup -h exit code. - Merge #112 from jaredmauch: log old and new serials when NSD rejects an IXFR due to an old serial number. - Fix #106: Adhere better to xfrd bounds. Refresh and retry times. - Fix #105: Clearing hash_tree means just emptying the tree. New upstream release 4.3.1 BUG FIXES: - Merge PR #91 by gearnode: nsd-control-setup recreate certificates. The '-r' option recreates certificates. Without it it creates them if they do not exist, and does not modify them otherwise. New upstream release 4.3.0 FEATURES: - Fix to use getrandom() for randomness, if available. - Fix #56: Drop sparse TSIG signing support in NSD. Sign every axfr packet with TSIG, according to the latest draft-ietf-dnsop-rfc2845bis-06, Section 5.3.1. - Merge pull request #59 frombuddyns: add FreeBSD support for conf key ip-transparent. - Add feature to pin server processes to specific cpus. - Add feature to pin IP addresses to selected server processes. - Set process title to identify individual processes. - Merge PR#22: minimise-any: prefer polular and not large RRset, from Daisuke Higashi. - Add support for SO_BINDTODEVICE on Linux. - Add feature to drop queries with opcode UPDATE. BUG FIXES: - Fix whitespace in nsd.conf.sample.in, patch from Paul Wouters. - use-systemd is ignored in nsd.conf, when NSD is compiled with libsystemd it always signals readiness, if possible. - Note that use-systemd is not necessary and ignored in man page. - Fix responses for IXFR so that the authority section is not echoed in the response. - Fix that the retry wait does not exceed one day for zone transfers. - Update keyring as per https://nlnetlabs.nl/people/ New upstream release 4.2.3: * confine-to-zone configures NSD to not return out-of-zone additional information. * pidfile "" allows to run NSD without a pidfile * adds support for readiness notification with READY_FD * fix excessive logging of ixfr failures, it stops the log when fallback to axfr is possible. log is enabled at high verbosity. * The nsd.conf includes are sorted ascending, for include statements with a '*' from glob. * Fix log address and failure reason with tls handshake errors, squelches (the same as unbound) some unless high verbosity is used. * Number of different UDP handlers has been reduced to one. recvmmsg and sendmmsg implementations are now used on all platforms. * Socket options are now set in designated functions for easy reuse. * Socket setup has been simplified for easy reuse. * Configuration parser is now aware of the context in which an option was specified. * document that remote-control is a top-level nsd.confattribute. - Remove legacy upgrade of nsd users in %post (boo#1157331) New upstream release 4.2.2: * Fix #20: CVE-2019-13207 Stack-based Buffer Overflow in the dname_concatenate() function. Reported by Frederic Cambus. It causes the zone parser to crash on a malformed zone file, with assertions enabled, an assertion catches it. * Fix #19: Out-of-bounds read caused by improper validation of array index. Reported by Frederic Cambus. The zone parser fails on type SIG because of mismatched definition with RRSIG. * PR #23: Fix typo in nsd.conf man-page. * Fix that NSD warns for wrong length of the hash in SSHFP records. * Fix #25: NSD doesn't refresh zones after extended downtime, it refreshes the old zones. * Set no renegotiation on the SSL context to stop client session renegotiation. * Fix #29: SSHFP check NULL pointer dereference. * Fix #30: SSHFP check failure due to missing domain name. * Fix to timeval_add in minievent for remaining second in microseconds. * PR #31: nsd-control: Add missing stdio header. * PR #32: tsig: Fix compilation without HAVE_SSL. * Cleanup tls context on xfrd exit. * Fix #33: Fix segfault in service of remaining streams on exit. * Fix error message for out of zone data to have more information. New upstream release 4.2.1: * FEATURES: - Added num.tls and num.tls6 stat counters. - PR #12: send-buffer-size, receive-buffer-size, tcp-reject-overflow options for nsd.conf, from Jeroen Koekkoek. - Fix #14, tcp connections have 1/10 to be active and have to work every second, and then they get time to complete during a reload, this is a process that lingers with the old version during a version update. * BUG FIXES: - Fix #13: Stray dot at the end of some log entries, removes dot after updated serial number in log entry. - FixTLS cipher selection, the previous was redundant, prefers CHACHA20-POLY1305 over AESGCM and was not as readable as it could be. - Fix #15: crash in SSL library, initialize variables for TCP access when TLS is configured. - Fix tls handshake event callback function mistake, reported by Mykhailo Danylenko. - Fix output of nsd-checkconf -h. New upstream release 4.2.0: * Implement TCP fast open * Added DNS over TLS * TLS OCSP stapling support with the tls-service-ocsp option * New option hide-identity can be used in nsd.conf to stop NSD from responding with the hostname for probe queries that elicit the chaos class response, this is conform RFC4892 * Disable TLS1.0, TLS1.1 and weak ciphers, enable CIPHER_SERVER_PREFERENCE Update to upstream release 4.1.27: * FEATURES: - Deny ANY with only one RR in response, by default. Patch from Daisuke Higashi. The deny-any statement in nsd.conf sets ANY queries over UDP to be further moved to TCP as well. Also no additional section processig for type ANY, reducing the response size. - Fix #4215: on-the-fly change of TSIG keys with patch from Igor, adds nsd-control print_tsig, update_tsig, add_tsig, assoc_tsig and del_tsig. These changes are gone after reload, edit the config file (or a file included from it) to make changes that last after restart. * BUG FIXES: Update to upstream release 4.1.26: * FEATURES: - DNSTAP support for NSD, --enable-dnstap and then config in nsd.conf. - Support SO_REUSEPORT_LB in FreeBSD 12 with the reuseport: yes option in nsd.conf. - Added nsd-control changezone. nsd-control changezone name pattern allows the change of a zone pattern option without downtime for the zone, in one operation. * BUG FIXES: - Fix #4194: Zone file parser derailed bynon-FQDN names in RHS of DNSSEC RRs. - Fix #4202: nsd-control delzone incorrect exit code on error. - Fix to not set GLOB_NOSORT so the nsd.conf include: files are sorted and in a predictable order. - Fix #3433: document that reconfig does not change per-zone stats. Update to upstream release 4.1.25: * FEATURES: - nsd-control prints neater errors for file failures. * BUG FIXES: - Fix that nsec3 precompile deletion happens before the RRs of the zone are deleted. - Fix printout of accepted remote control connection for unix sockets. - Fix use_systemd typo/leftover in remote.c. - Fix codingstyle in nsd-checkconf.c in patch from Sharp Liu. - append_trailing_slash has one implementation and is not repeated differently. - Fix coding style in nsd.c - Fix to combine the same error function into one, from Xiaobo Liu. - Fix initialisation in remote.c. - please clang analyzer and fix parse of IPSECKEY with bad gateway. - Fix nsd-checkconf fail on bad zone name. - Annotate exit functions with noreturn. - Remove unused if clause during server service startup. - Fix #4156: Fix systemd service manager state change notification When it is compiled, systemd readiness signalling is enabled. The option in nsd.conf is not used, it is ignored when read. Update to upstream release 4.1.24: - Features * #4102: control interface via local socket * configure --enable-systemd (needs pkg-config and libsystemd) can be used to then use-systemd: yes in nsd.conf and have readiness signalling with systemd. * RFC8162 support, for record type SMIMEA. - Bug Fixes * Patch to fix openwrt for mac os build darwin detection in configure. * Fix that first control-interface determines if TLS is used. Warn when IP address interfaces are used withoutTLS. * #4106: Fix that stats printed from nsd-control are recast from unsigned long to unsigned (remote.c). * Fix that type CAA (and URI) in the zone file can contain dots when not in quotes. * #4133: Fix that when IXFR contains a zone with broken NSEC3PARAM chain, NSD leniently attempts to find a working NSEC3PARAM. Update to upstream release 4.1.23: - Fix NSD time sensitive TSIG compare vulnerability. Update to upstream release 4.1.22: - Features: * refuse-any sends truncation (+TC) in reply to ANY queries over UDP, and allows TCP queries like normal. * Use accept4 to speed up answer of TCP queries - Bug fixes: * Fix nsec3 hash of parent and child co-hosted nsec3 enabled zones. * Fix to use same condition for nsec3 hash allocation and free. - Changes in version 4.1.21: - Features: * --enable-memclean cleans up memory for use with memory checkers, eg. valgrind. * refuse-any nsd.conf option that refuses queries of type ANY. * lower memory usage for tcp connections, so tcp-count can be higher. - Bug fixes: * Fix spelling error in xfr-inspect. * Fix buffer size warnings from compiler on filename lengths. Patch Instructions: To install this openSUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch". Alternatively you can run the command listed for your product: - openSUSE Leap 15.2: zypper in -t patch openSUSE-2020-2222=1 - openSUSE Leap 15.1: zypper in -t patch openSUSE-2020-2222=1 - openSUSE Backports SLE-15-SP2: zypper in -t patch openSUSE-2020-2222=1 - openSUSE Backports SLE-15-SP1: zypper in -t patch openSUSE-2020-2222=1 - SUSE Package Hub for SUSE Linux Enterprise 12: zypper in -t patch openSUSE-2020-2222=1 Package List: - openSUSE Leap 15.2 (x86_64): nsd-4.3.4-lp152.2.3.1 nsd-debuginfo-4.3.4-lp152.2.3.1 nsd-debugsource-4.3.4-lp152.2.3.1 - openSUSE Leap 15.1 (x86_64): nsd-4.1.27-lp151.2.3.1 nsd-debuginfo-4.1.27-lp151.2.3.1 nsd-debugsource-4.1.27-lp151.2.3.1 - openSUSE Backports SLE-15-SP2 (aarch64 ppc64le s390x x86_64): nsd-4.3.4-bp152.2.3.1 nsd-debuginfo-4.3.4-bp152.2.3.1 nsd-debugsource-4.3.4-bp152.2.3.1 - openSUSE Backports SLE-15-SP1 (aarch64 ppc64le s390x x86_64): nsd-4.1.27-bp151.3.3.1 - SUSE Package Hub for SUSE Linux Enterprise 12 (aarch64 ppc64le s390x x86_64): nsd-4.3.4-8.1 References: https://www.suse.com/security/cve/CVE-2019-13207.html https://www.suse.com/security/cve/CVE-2020-28935.html https://bugzilla.suse.com/1157331 https://bugzilla.suse.com/1179191 _______________________________________________ openSUSE Security Announce mailing list --
Resolves: rhbz#1609774 nsd-4.2.2 is available. --------------------------------------------------------------------------------Fedora Update Notification FEDORA-2019-96fe76e02b 2019-09-08 02:58:13.005863 --------------------------------------------------------------------------------Name : nsd Product : Fedora 30 Version : 4.2.2 Release : 1.fc30 URL : https://www.nlnetlabs.nl/projects/nsd/about/ Summary : Fast and lean authoritative DNS Name Server Description : NSD is a complete implementation of an authoritative DNS name server. For further information about what NSD is and what NSD is not please consult the REQUIREMENTS document which is a part of this distribution. --------------------------------------------------------------------------------Update Information: Resolves: rhbz#1609774 nsd-4.2.2 is available --------------------------------------------------------------------------------ChangeLog: * Fri Aug 30 2019 Paul Wouters - 4.2.2-1 - Resolves: rhbz#1609774 nsd-4.2.2 is available - Resolves: rhbz#1727689 CVE-2019-13207 nsd: stack-based overflow - Update rundir to /run/ - Updated nsd.conf for new features - Added --enable-recvmmsg --enable-packed --enable-memclean --enable-zone-stats * Thu Jul 25 2019 Fedora Release Engineering - 4.1.24-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild --------------------------------------------------------------------------------References: [ 1 ] Bug #1609774 - nsd-4.2.2 is available https://bugzilla.redhat.com/show_bug.cgi?id=1609774 [ 2 ] Bug #1727689 - CVE-2019-13207 nsd: stack-based overflow in function dname_concatenate() in dname.c [fedora-all] https://bugzilla.redhat.com/show_bug.cgi?id=1727689 --------------------------------------------------------------------------------This update can be installed with the "dnf" update program. Use su -c 'dnf upgrade --advisory FEDORA-2019-96fe76e02b' at the command line. For more information, refer to the dnfdocumentation available at https://dnf.readthedocs.io/en/latest/command_ref.html All packages are signed with the Fedora Project GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/security/ --------------------------------------------------------------------------------_______________________________________________ package-announce mailing list --
Updated to 4.1.13 (CVE-2016-6173, OPENPGPKEY support). -------------------------------------------------------------------------------- Fedora Update Notification FEDORA-2016-e1d4972701 2016-10-11 15:42:43.079250 -------------------------------------------------------------------------------- Name : nsd Product : Fedora 24 Version : 4.1.13 Release : 1.fc24 URL : https://www.nlnetlabs.nl/projects/nsd/about/ Summary : Fast and lean authoritative DNS Name Server Description : NSD is a complete implementation of an authoritative DNS name server. For further information about what NSD is and what NSD is not please consult the REQUIREMENTS document which is a part of this distribution. -------------------------------------------------------------------------------- Update Information: Updated to 4.1.13 (CVE-2016-6173, OPENPGPKEY support) -------------------------------------------------------------------------------- References: [ 1 ] Bug #1353577 - CVE-2016-6173 nsd: Improper restriction of zone size limit [fedora-all] https://bugzilla.redhat.com/show_bug.cgi?id=1353577 -------------------------------------------------------------------------------- This update can be installed with the "yum" update program. Use su -c 'yum update nsd' at the command line. For more information, refer to "Managing Software with yum", available at . All packages are signed with the Fedora Project GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/security/ -------------------------------------------------------------------------------- _______________________________________________ package-announce mailing list --
Updated to 4.1.13 (CVE-2016-6173, OPENPGPKEY support). -------------------------------------------------------------------------------- Fedora Update Notification FEDORA-2016-9960d370f7 2016-10-10 17:40:40.965974 -------------------------------------------------------------------------------- Name : nsd Product : Fedora 25 Version : 4.1.13 Release : 1.fc25 URL : https://www.nlnetlabs.nl/projects/nsd/about/ Summary : Fast and lean authoritative DNS Name Server Description : NSD is a complete implementation of an authoritative DNS name server. For further information about what NSD is and what NSD is not please consult the REQUIREMENTS document which is a part of this distribution. -------------------------------------------------------------------------------- Update Information: Updated to 4.1.13 (CVE-2016-6173, OPENPGPKEY support) -------------------------------------------------------------------------------- References: [ 1 ] Bug #1353577 - CVE-2016-6173 nsd: Improper restriction of zone size limit [fedora-all] https://bugzilla.redhat.com/show_bug.cgi?id=1353577 -------------------------------------------------------------------------------- This update can be installed with the "yum" update program. Use su -c 'yum update nsd' at the command line. For more information, refer to "Managing Software with yum", available at . All packages are signed with the Fedora Project GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/security/ -------------------------------------------------------------------------------- _______________________________________________ package-announce mailing list --
Security release. A one-byte overflow bug allows a carefully crafted exploit to bring down your DNS server. It is highly unlikely that this one byte overflow can lead to other (system) exploits. . -------------------------------------------------------------------------------- Fedora Update Notification FEDORA-2009-5190 2009-05-19 23:55:54 -------------------------------------------------------------------------------- Name : nsd Product : Fedora 9 Version : 3.2.2 Release : 1.fc9 URL : https://www.nlnetlabs.nl/projects/nsd/about/ Summary : Fast and lean authoritative DNS Name Server Description : NSD is a complete implementation of an authoritative DNS name server. For further information about what NSD is and what NSD is not please consult the REQUIREMENTS document which is a part of this distribution (thanks to Olaf). -------------------------------------------------------------------------------- Update Information: Security release. A one-byte overflow bug allows a carefully crafted exploit to bring down your DNS server. It is highly unlikely that this one byte overflow can lead to other (system) exploits. -------------------------------------------------------------------------------- ChangeLog: * Mon May 18 2009 Paul Wouters - 3.2.2-1 - Upgraded to 3.2.2 security release - Removed obsoleted options --enable-plugins --enable-mmap * Fri Apr 10 2009 Paul Wouters - 3.2.1-1 - updated to 3.2.1 - fixed /dev/nul which cause a file /%1 to be written by cron - Applied Ville Mattila's changes to support non-default locations * Mon Sep 15 2008 Paul Wouters - 3.1.1-1 - Updated to new version * Mon Jun 30 2008 Paul Wouters - 3.1.0-1 - Updated to new version -------------------------------------------------------------------------------- This update can be installed with the "yum" update program. Use su -c 'yum update nsd' at the command line. For more information, refer to "Managing Software with yum", available at . All packages are signed with the FedoraProject GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/security/ -------------------------------------------------------------------------------- _______________________________________________ Fedora-package-announce mailing list
Get the latest Linux and open source security news straight to your inbox.