FS#22553 - critical vulnerabilities in BIND

Attached to Project: Arch Linux
Opened by Geert Hendrickx (ghen) - Saturday, 22 January 2011, 18:04 GMT
Last edited by Gaetan Bisson (vesath) - Monday, 24 January 2011, 12:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I know outdated packages should normally not be reported this way, but I already flagged the BIND package as outdated >7 weeks ago, and e-mailed the maintainer several times (with patches)...

BIND 9.7.3-P2 has three *critical* vulnerabilities, addressed in BIND 9.7.3-P3, and ISC recommends to upgrade *immediately* for certain setups:
http://www.isc.org/announcement/guidance-regarding-dec-1st-2010-security-advisories

The diff to update is attached, it's trivial. I'm running this on an authoritative NS with no problems.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Monday, 24 January 2011, 12:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  9.7.2.P3-3 in [extra]
Comment by Gaetan Bisson (vesath) - Saturday, 22 January 2011, 18:36 GMT
I will upgrade BIND this time, but I don't know if I will have much time to waste on it in the future.
It really is a pile of crap, which is why it needs to be upgraded *immediately* almost every month; NSD is a much safer and lightweight alternative.
Anyway, since I will also be cleaning up the PKGBUILD, the package will maybe be released tomorrow or the day after.
Comment by Geert Hendrickx (ghen) - Saturday, 22 January 2011, 19:24 GMT
Thanks a lot. FWIW, I'm running NSD on my other authoritative. ;-)

But lots of people rely on BIND, so it really should be kept up-to-date wrt. security fixes.
Comment by Gaetan Bisson (vesath) - Saturday, 22 January 2011, 21:58 GMT
Alright, I have put bind-9.7.2.P2-1 in [testing].
Since I have changed lots of things (although it's mostly packaging cleanup), I'd appreciate if you could tell me whether it runs fine with your setup.
If there is no issue, I will move it to [extra].
Comment by Gaetan Bisson (vesath) - Saturday, 22 January 2011, 22:08 GMT
Oh, wait. I did a tiny mistake which will be fixed in bind-9.7.2.P2-2, soon to appear in [testing] too. It's this new one that should be tested.
Comment by Gaetan Bisson (vesath) - Sunday, 23 January 2011, 09:06 GMT
bind-9.7.2.P2-2 is finally in [testing]; let me know if it works for you.
Comment by Geert Hendrickx (ghen) - Sunday, 23 January 2011, 10:19 GMT
No, the chown and chmod of /var/named broke my setup where /var/named is a symlink to /var/chroot/named/var/named.

I don't like all the chowning and chmodding in general, everybody's setup is different and your permissions/ownerships may not apply to others.

Also, I don't think daemons usually should have ownership of their own config files, just read access.

And particularly, with BIND and DNSSEC, many people keep their DNS keys inside /var/named, but unreadable for the named user (if they sign their zones with external tools, as root or another user). The chown -R makes them readable for the nameserver process, which poses a serious security risk!

The updated binaries work fine though.
Comment by Gaetan Bisson (vesath) - Sunday, 23 January 2011, 11:30 GMT
Right. What I did is roughly equivalent to what the previous install script did. I'll try to make something better and let you know when it's done.
Comment by Geert Hendrickx (ghen) - Sunday, 23 January 2011, 11:48 GMT
Could you perhaps already put the updated package (just my diff) in [extra], and keep the other package changes separate?
Comment by Gaetan Bisson (vesath) - Sunday, 23 January 2011, 12:07 GMT
If I do that I'll never get to properly clean up this package. :)
I'm building the new version right now: x86_64 is taking some time, but i686 is done; if your architecture is i686 I can send you the package right away, otherwise they'll both be in [testing] in an hour or so.
Comment by Gaetan Bisson (vesath) - Sunday, 23 January 2011, 13:38 GMT
Alright, bind-9.7.2.P3-3 is in [testing] now. Let me know how it goes for you.
Comment by Gaetan Bisson (vesath) - Monday, 24 January 2011, 10:50 GMT
Argh... I forgot to actually move it to [testing].
It is there now, please let me know if it works for you.
I made it not not change any file permission on update.
Comment by Geert Hendrickx (ghen) - Monday, 24 January 2011, 11:44 GMT
Yes, it looks ok now.

Also root.hint, localhost.zone etc keep their original 640 root:named permissions now (I did not notice these problems since I'm not running it as a recursive resolver).

Thanks!

Loading...