Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

named: stack smashing attack in function query_find

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

named: stack smashing attack in function query_find

  • Quote

Post by richard.scott » Wed Feb 14, 2007 11:52 pm

I've recently upgraded to bind-9.3.4 and when I try and emerge with the "idn" flag I get a stack error when running the daemon:

Code: Select all

named: stack smashing attack in function query_find
Once you try and query a zone file that the bind server is a master for it kills the daemon and reports a stack smashing error!

If you re-compile with "-idn" then its all ok!

EDIT: ok, its not all ok without the IDN flag...it was late when I restarted my daemon and I didn't notice it crash again!

Has anyone else see this with a hardened system?
Top
guerro
Guru
Guru
User avatar
Posts: 421
Joined: Mon Jun 21, 2004 12:43 pm
Location: Brescia
Contact:
Contact guerro
Website

  • Quote

Post by guerro » Fri Feb 16, 2007 7:42 am

same problem here..... I think that it has the same problem like previous version (9.3.3, hard-masked 1 day after it become stable)....
I solved it masking last version and using old version (9.3.2). I hope that in the future this bug will be solved. Now I still waiting
(.(*. .*).)
.. G u e r r o ..
(.(.* *.).)
Top
LostControl
l33t
l33t
User avatar
Posts: 885
Joined: Tue Mar 02, 2004 5:10 pm
Location: La Glane, Suisse
Contact:
Contact LostControl
Website

Re: named: stack smashing attack in function query_find

  • Quote

Post by LostControl » Sat Feb 17, 2007 6:41 pm

richard.scott wrote:Has anyone else see this with a hardened system?
Same here :(
http://www.jaqpot.net
http://www.fail2ban.org
Top
babudro
n00b
n00b
User avatar
Posts: 35
Joined: Fri Sep 30, 2005 2:05 am
Location: Canada
Contact:
Contact babudro
Website

  • Quote

Post by babudro » Sun Feb 18, 2007 12:02 am

Same here. I'm glad to have found this reminder. I ran into this before (probably with 9.3.3) but forgot what I had done to fix it. These forums can sure save a guy a lot of head scratching.
Top
smoco
n00b
n00b
Posts: 31
Joined: Mon Feb 19, 2007 9:24 am
Location: Slovakia

Named 9.3.4 falls down

  • Quote

Post by smoco » Mon Feb 19, 2007 9:32 am

Hi ,
After bind update to version 9.3.4 , a cannot start bind , after start it is running few seconds a then fall down with
"unable to start stack smashing attack in function query_find" message.
Have anyone the same problem ??

ENVIROMENT
Hardened gentoo x86 , Pentium 4
kernel version 2.6.17-hardened-r1
Top
pent0z
Tux's lil' helper
Tux's lil' helper
Posts: 131
Joined: Sat May 17, 2003 6:44 pm

  • Quote

Post by pent0z » Mon Feb 19, 2007 9:49 am

i had similar problems whit the hardened profile... named starts, but after some seconds goes down
switched back to the previous version
Intel 975XBX, Core 2 Duo E6600, 4Gb DDR2, 4x 74Gb SATA 10000 RAID-0, Geforce 6600 - /dev/mapper/isw_raid0: Timing buffered disk reads: 812 MB in 3.00 seconds = 270.30 MB/sec
Top
smoco
n00b
n00b
Posts: 31
Joined: Mon Feb 19, 2007 9:24 am
Location: Slovakia

Other versions too

  • Quote

Post by smoco » Mon Feb 19, 2007 4:50 pm

I've tried 9.2.8 and same thing , so I remove all /var/bind start bind and the same , it looks that only 9.3.2 is working correctly.
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Mon Feb 19, 2007 7:03 pm

Merged previous three posts.
Search | Read | Answer | Report | Strip
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Mon Feb 19, 2007 8:31 pm

pent0z wrote:i had similar problems whit the hardened profile... named starts, but after some seconds goes down
switched back to the previous version
What are your CFLAGS set to?

I have mine set as follows:

Code: Select all

CFLAGS="-mtune=i686 -Os -pipe -fomit-frame-pointer"
I hear that if you try -O instead of -Os or -O2 that it may be ok.....I read that on a bug report somewhere but not tested it yet as it would mean a total rebuild of my server 8O


EDIT: ok, after a total rebuild with -O and not -Os its still the same :cry:
Last edited by richard.scott on Mon Feb 26, 2007 4:56 pm, edited 1 time in total.
Top
chashab
n00b
n00b
User avatar
Posts: 71
Joined: Wed Jun 16, 2004 7:23 pm
Location: Republic of Alumbia
Contact:
Contact chashab
Website

  • Quote

Post by chashab » Tue Feb 20, 2007 4:03 am

Has anyone solved this issue yet?

I'm going to downgrade for now. If someone else is considering downgrading, note [glsa=200702-06][ GLSA 200702-06 ] BIND: Denial of Service[/glsa].

Update: Should have read the previous posts more closely:
smoco wrote:I've tried 9.2.8 and same thing , so I remove all /var/bind start bind and the same , it looks that only 9.3.2 is working correctly.
The problem is 9.3.2 suffers from the aforementioned GLSA 200702-06. In other words, there is no viable bind version for a hardened system at this point.

Update: What I did is use gcc-config to switch to a non hardened gcc. Recompiled the most recent bind and switched gcc back afterwards. So no hardened bind, but better than running a vulnerable version.
Top
s_wilk
n00b
n00b
User avatar
Posts: 27
Joined: Tue Aug 22, 2006 5:59 am
Location: Lublin,PL

  • Quote

Post by s_wilk » Wed Feb 21, 2007 8:52 am

Hi,


You don't need to downgrade it.

Just switch gcc to hardenednossp version and recompile bind.
It works then.

--
Regards,
Szymon Wilkolazki
Top
richard.scott
Veteran
Veteran
Posts: 1497
Joined: Mon May 19, 2003 5:19 pm
Location: Oxfordshire, UK
Contact:
Contact richard.scott
Website

  • Quote

Post by richard.scott » Mon Feb 26, 2007 4:55 pm

s_wilk wrote:Hi,


You don't need to downgrade it.

Just switch gcc to hardenednossp version and recompile bind.
It works then.

--
Regards,
Szymon Wilkolazki

does this make the service less secure?
Top
Post Reply

12 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy