Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770385 - net-dns/bind-9.16.11 crashes (SIGSEGV/11) when using named acls in the config file
Summary: net-dns/bind-9.16.11 crashes (SIGSEGV/11) when using named acls in the config...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL: https://bugs.debian.org/cgi-bin/bugre...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-13 16:01 UTC by Huemi
Modified: 2021-02-23 19:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Huemi 2021-02-13 16:01:43 UTC
As reported by users of another distribution vanilla bind-9.16.11 crashes with a config file using named acls because of a bug.

Reproducible: Always

Steps to Reproduce:
Use named acls in your bind config.
Update to net-dns/bind-9.16.11
Restart bind
Actual Results:  
Crashes with SIGSEGV caused by bug

Expected Results:  
It should work flawlessly as earlier versions did.

There is a patch which fixed the crash when being included in the patches section of the ebuild:

https://sources.debian.org/data/main/b/bind9/1:9.16.11-2/debian/patches/0003-fix-segv-with-named-acl.patch


You should also find a similar patch upstream, but it seems to be not included before upcoming bind 9.16.12:
https://gitlab.isc.org/isc-projects/bind9/-/issues/2413
Comment 1 Huemi 2021-02-13 16:49:18 UTC
Please read the description in bugzilla (you see it when you try to create a new bug):
"Critical: The software crashes, hangs, or causes you to lose data"

In my opinion SIGSEGV on service startup fulfills the criteria "software crashes".
Upgrading from a previously working config causes DNS servers to stop working unexpectedly (you can't start the service anymore).
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-02-13 16:54:24 UTC
I do not expect this bug being fixed at all, there is pending security release this week which will make this version eliminated (not to say the status does not make me look into bugs quicker)
Comment 3 Huemi 2021-02-13 17:53:15 UTC
(In reply to Mikle Kolyada from comment #2)
> I do not expect this bug being fixed at all, there is pending security
> release this week which will make this version eliminated (not to say the
> status does not make me look into bugs quicker)

If I understand you correctly you are not going to create a new -r1 ebuild with:
--- /usr/portage/net-dns/bind-9.16.11.ebuild 2021-01-26 11:09:22.000000000 +0100
+++ /usr/portage/net-dns/bind-9.16.11-r1.ebuild 2021-02-13 18:24:04.095315825 +0100
@@ -86,6 +86,7 @@

 PATCHES=(
        "${FILESDIR}/ldap-library-path-on-multilib-machines.patch"
+       "${FILESDIR}/0003-fix-segv-with-named-acl.patch"
 )

and the referenced Debian patch (or another one from ISC) being added to 
/usr/portage/net-dns/bind/files

as you don't want to create ebuilds which will be obsolete in a few days and instead replace this ebuild (and any others referencing 9.16.11) completely with the upcoming release which probably should have this patch already included.

This is totally reasonable, but in my opinion keeping "Critical" (this is the severity field and not the priority field) wouldn't prevent you from later "RESOLVING" this bug by removing the buggy ebuild and replacing it with an ebuild of the next security release.
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-02-23 15:44:24 UTC
Is this still present in bind-9.16.12?
Comment 5 Huemi 2021-02-23 19:02:49 UTC
No (bug was fixed).

From the change log of 9.16.12:
5571.   [bug]           named failed to start when its configuration included a
                        zone with a non-builtin "allow-update" ACL attached.
                        [GL #2413]
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-02-23 19:32:16 UTC
I just wanted someone to confirm, thank you! Due to security vulns 9.16.12 is the only version in the tree, that said we can close the ticket :)