FYI the code does not apply as-is to the older versions.
The changelog/header entries can easily be matched, but the options.c code 
essentially needs a rewrite to match the older versions - the ttl handling was 
different and also the code was in other places.

At least it would be one backport as 2.68 and 2.75 seem to have more or
less the same code for this section. But I wonder how much risk we
should go potentially making a bad backport or if we should consider
this being a bad configuration.

At those more experienced, while a crash is always bad - is this "just" a case 
happing in a bad config?
It seems to violate this from the man page 
"--cname=<cname>,[<cname>,]<target>[,<TTL>] [...] The  cname must be unique," 
but isn't all to clear there and obviously a fault isn't the best response even 
to a misconfig.
Or can there be external influences that make it affect you - like people 
redefining their DNS to cause you to have a loop - not sure how real that would 
be?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1782362

Title:
  dnsmasq segfaults on cnames referring to themselves

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Trusty:
  New
Status in dnsmasq source package in Xenial:
  New

Bug description:
  If one would add a CNAME-record that would point to itself like so:
  CNAME=test.example.com,test.example.com

  This will result in a segfault and crash of the dnsmasq process.

  Segfault on 14.04 / dnsmasq 2.68:
  dnsmasq[22762]: segfault at 7ffe1727dff8 ip 00007f7c60cde755 sp 
00007ffe1727dff0 error 6 in libc-2.19.so[7f7c60c5e000+1be000]

  Segfault on 16.04 / dnsmasq 2.75:
  dnsmasq[21097]: segfault at 7ffc4bf90ff8 ip 00007f268bf7ebbc sp 
00007ffc4bf90ff0 error 6 in libc-2.23.so[7f268befd000+1c0000]

  
  Ubuntu versions affected: Ubuntu 14.04.5 LTS & Ubuntu 16.04.4 LTS

  dnsmasq version (14.04) 2.68-1ubuntu0.2
  dnsmasq version (16.04): 2.75-1ubuntu0.16.04.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1782362/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to