139d9 Latest FreeBSD Security Patch - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old August 7th, 2012, 18:13
xy16644 xy16644 is offline
Member
 
Join Date: Jul 2009
Posts: 503
Thanks: 14
Thanked 7 Times in 3 Posts
Default Latest FreeBSD Security Patch

Today I see there was a new security patch released for FreeBSD to patch BIND. I have installed the patch as per the instruction on the web site (using the source install option).

Couple questions:

1) Is a reboot needed after installing this patch via source?

2) Normally when I upgrade my system via source I follow these steps:
Code:
* csup /root/supfile
* cd /usr/src
* make cleanworld && make cleandir
* make buildworld
* make buildkernel KERNCONF=ALPHA
* make installkernel KERNCONF=ALPHA
* shutdown -r now

Boot into single user mode:

* mount -u /
* mount -a -t ufs
* adjkerntz -i
* mergemaster -p
* cd /usr/src
* make installworld
* make delete-old
* mergemaster -i
* shutdown -r now
Is all this necessary when applying a single patch like I did today for BIND?
Reply With Quote
  #2  
Old August 8th, 2012, 01:53
Savagedlight Savagedlight is offline
Member
 
Join Date: Jan 2010
Location: Norway
Posts: 250
Thanks: 32
Thanked 47 Times in 35 Posts
Default

You'd have to recompile & install the changes.
A patched source tree won't do you much good if you don't update the binaries.
Reply With Quote
  #3  
Old August 8th, 2012, 07:08
uisge uisge is offline
Junior Member
 
Join Date: Nov 2008
Posts: 40
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Savagedlight View Post
You'd have to recompile & install the changes.
A patched source tree won't do you much good if you don't update the binaries.
The mentioned web site instruction includes a "make install".

Thus, the question remains if a reboot is needed after patching bind. I'd say no, a restart of the named daemon should be sufficient. But I'm as unsure about that issue as the thread starter ...

(I will skip this security fix this time because I'm running nsd and unbound instead.)
__________________
regards, uisge
Reply With Quote
  #4  
Old August 8th, 2012, 07:48
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by xy16644 View Post
Is all this necessary when applying a single patch like I did today for BIND?
Read the advisory.

Quote:
2) To update your vulnerable system via a source code patch:

The following patches have been verified to apply to FreeBSD 7.4,
8.3, 8.2, 8.1 and 9.0 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch http://security.FreeBSD.org/patches/SA-12:05/bind.patch
# fetch http://security.FreeBSD.org/patches/...bind.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/lib/bind/dns
# make obj && make depend && make && make install
# cd /usr/src/usr.sbin/named
# make obj && make depend && make && make install

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 8.3-RELEASE, 8.2-RELEASE, 8.1-RELEASE,
or 9.0-RELEASE on the i386 or amd64 platforms can be updated via the
freebsd-update(8) utility:

# freebsd-update fetch
# freebsd-update install
In this case a restart of BIND would suffice.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old August 11th, 2012, 13:57
radmanly radmanly is offline
Junior Member
 
Join Date: Nov 2008
Posts: 37
Thanks: 5
Thanked 1 Time in 1 Post
Default

I'm trying to apply this patch. Everything worked fine until I tried to run make depend in /usr/src/usr.sbin/named. Make complained that it didn't know how to build libbind9.a. So, I went into the bind9 directory and ran make there. That worked. I had to repeat this for libisccc.a, libisccfg.a, libisca.a, and liblwres.a.

Now, when I run make in /usr/src/usr.sbin/named, I get:

Code:
cc: ../../lib/bind/bind9/libbind9.a: No such file or directory
cc: ../../lib/bind/isccc/libisccc.a: No such file or directory
cc: ../../lib/bind/isccfg/libisccfg.a: No such file or directory
cc: ../../lib/bind/isc/libisc.a: No such file or directory
cc: ../../lib/bind/lwres/liblwres.a: No such file or directory
*** Error code 1
Why is this?
Reply With Quote
  #6  
Old August 14th, 2012, 04:38
phobis phobis is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Likely bad linking during compilation, retry at least 4 times to be quite sure it's not your make.conf. Remember to cleanworld && cleandeps also, if it still doesn't it could be a bug.

Last edited by SirDice; August 14th, 2012 at 09:56. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #7  
Old August 14th, 2012, 14:48
radmanly radmanly is offline
Junior Member
 
Join Date: Nov 2008
Posts: 37
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks for the reply. I've retried more than 4 times and it still doesn't work. I modified the makefile in /usr/src/usr.sbin/named to use absolute instead of relative paths. After that, the linker could find the libraries.

Now, it's complaining that there's no libdns.a. When I go into the dns directory and run make, nothing happens.

Am I the only one having these problems?
Reply With Quote
  #8  
Old August 15th, 2012, 07:37
Savagedlight Savagedlight is offline
Member
 
Join Date: Jan 2010
Location: Norway
Posts: 250
Thanks: 32
Thanked 47 Times in 35 Posts
Default

May I suggest you do a cleanworld & buildworld (but not installworld) in /usr/src, then try to install the named binary?
Reply With Quote
The Following User Says Thank You to Savagedlight For This Useful Post:
radmanly (August 16th, 2012)
  #9  
Old August 16th, 2012, 10:46
lyubomirrussev lyubomirrussev is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi radmanly,

You are not the only one who is experiencing this.
I have the same problem on several i386 servers running 8.3-RELEASE-p3.

FreeBSD gurus, please help!
Reply With Quote
  #10  
Old August 16th, 2012, 13:04
radmanly radmanly is offline
Junior Member
 
Join Date: Nov 2008
Posts: 37
Thanks: 5
Thanked 1 Time in 1 Post
Default

I don't know if rebuilding world is an option for you, lyubomirrussev, but it fixed the problem for me. After make cleanworld & make buildworld, I rebooted to single-user mode and did a make installworld and now have a brand new named. Rebuilding world to get a small named patch seems like overkill but it worked.

Thanks!
Reply With Quote
  #11  
Old August 17th, 2012, 06:46
lyubomirrussev lyubomirrussev is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the solution, radmanly!

However in my humble opinion there is something wrong in the /usr/sbin/namedbuild dependencies which are requiring to rebuild the whole system via
# make cleanworld
# make buildworld
and
# make installworld
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can the latest FreeBSD work as Xen Dom0 ? JohnFu General 9 October 13th, 2012 20:25
skype and flashplayer does not work after applying security patch hedgehog Installing & Upgrading 4 October 5th, 2011 10:40
[Solved] Latest patch doesn't change uname? silverglade00 Installing & Upgrading 5 May 11th, 2011 23:19
Something awfull with latest mysql on latest FreeBSD aga Web & Network Services 1 October 22nd, 2009 17:37
djbdns security breach and patch ctaranotte Installation and Maintenance of FreeBSD Ports or Packages 0 March 6th, 2009 12:37


All times are GMT +1. The time now is 07:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0