REDHAT-BUG-2432534: Medium severity Avahi Avahi vulnerability
Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. In versions 0.9rc2 and below, avahi-daemon can be crashed via a segmentation fault by sending an unsolicited mDNS response containing a recursive CNAME record, where the alias and canonical name point to the same domain (e.g., "h.local" as a CNAME for "h.local"). This causes unbounded recursion in the lookuphandlecname function, leading to stack exhaustion. The vulnerability affects record browsers where AVAHILOOKUPUSEMULTICAST is set explicitly, which includes record browsers created by resolvers used by nss-mdns. This issue is patched in commit 78eab31128479f06e30beb8c1cbf99dd921e2524.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 78eab31128479f06e30beb8c1cbf99dd921e2524
Event History
Frequently Asked Questions
Which deployments are exposed to the vulnerable lookup path?
The issue affects Avahi record browsers that explicitly set AVAHI_LOOKUP_USE_MULTICAST. This includes record browsers created by resolvers used by nss-mdns.
What does an attacker need to send to trigger the failure?
An attacker must send an unsolicited mDNS response containing a recursive CNAME record whose alias and canonical name are the same domain. Processing that record causes unbounded recursion and stack exhaustion.
What is the practical impact of successful exploitation?
Successful exploitation crashes avahi-daemon through a segmentation fault caused by stack exhaustion.
How can I determine whether an installation is affected?
Avahi versions 0.9rc2 and earlier are affected when the vulnerable multicast record-browser path is used. The issue is fixed by commit 78eab31128479f06e30beb8c1cbf99dd921e2524.