Coder Social home page Coder Social logo

Comments (6)

lathiat avatar lathiat commented on June 2, 2024

That is uh, quite excellent. I tried just setting that hostname which wasn't enough to reproduce it for some super strange reason (that would have been nice :-)

But looking at the backtrace it looks like we're continuously looking up a cname. Do you have something on the network publishing aliases, like avahi-aliases or some code otherwise like https://github.com/airtonix/avahi-aliases/blob/master/avahi_aliases/bin/avahi-alias ?

I can reproduce it if I use that script to publish a CNAME for ourselves, triggers the recursion. So we should detect this recursive lookup and fail out.

from avahi.

rlbartle avatar rlbartle commented on June 2, 2024

Yes, there is also code that adds an alias.

from avahi.

pemensik avatar pemensik commented on June 2, 2024

I think some kind to limited TTL should be used on CNAME follows. And lookup_handle_cname should create new lookup only if previous queries did not contain the current destination pointer. Not sure if we keep that history, I think we should. At least for cnames.

from avahi.

pemensik avatar pemensik commented on June 2, 2024

It seems to me we just need to check l->cname_lookups for equal key. If we find it, then this lookup contains loop and we have to abort the search, call lookup_drop_cname to remove this search. Not sure how do we make search failed. Another check might ensure n->refs <= 1. But l->cname_lookups seems better place to check.

from avahi.

evverx avatar evverx commented on June 2, 2024

I revamped this issue in #501. @pemensik I wonder if RH assigned a CVE?

from avahi.

pemensik avatar pemensik commented on June 2, 2024

I haven't found a vulnerability bug for avahi, which would sound similar. No CVE id for this issue it seems.

from avahi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.