CVE-2021-3502: Null Pointer Dereference

Published Mar 27, 2021
·
Updated

A flaw was found in avahi 0.8-5. A reachable assertion is present in avahishostnameresolverstart function allowing a local attacker to crash the avahi service by requesting hostname resolutions through the avahi socket or dbus methods for invalid hostnames. The highest threat from this vulnerability is to the service availability.

Other sources

A local Dos in avahi-daemon that can be triggered by trying to resolve badly-formatted hostnames on the /run/avahi-daemon/socket interface.

References:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986018

Red Hat

Affected Software

2 affected componentsFixes available
Avahi Avahi=0.8-5
debian/avahi
0.8-5+deb11u20.8-5+deb11u30.8-10+deb12u10.8-160.8-17

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/avahi to a version that resolves this vulnerability.

    Fixed in 0.8-5+deb11u2Fixed in 0.8-5+deb11u3Fixed in 0.8-10+deb12u1Fixed in 0.8-16Fixed in 0.8-17
  2. Upgrade

    Upgrade avahi to a version that resolves this vulnerability.

    Fixed in 0.8-5
  3. Compensating control

    To reduce impact while fixing, restrict access to the avahi service so only trusted local clients can reach the /run/avahi-daemon/socket interface and the avahi socket/dbus hostname-resolution methods.

Event History

Mar 27, 2021
Data Sourced
via Debian·10:51 PM
SeverityAffected Software
Apr 7, 2021
Data Sourced
via Red Hat·08:57 AM
DescriptionSeverityAffected Software
May 7, 2021
CVE Published
via MITRE·11:46 AM
Data Sourced
via MITRE·11:46 AM
DescriptionWeakness
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 12, 2025
Data Sourced
via Debian·12:39 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the CVE ID of this vulnerability?

The CVE ID of this vulnerability is CVE-2021-3502.

2

What is the severity of CVE-2021-3502?

The severity of CVE-2021-3502 is medium, with a CVSSv3 score of 5.5.

3

Which software version is affected by CVE-2021-3502?

The Avahi software version 0.8-5 is affected by CVE-2021-3502.

4

How can a local attacker exploit this vulnerability?

A local attacker can crash the Avahi service by requesting hostname resolutions through the avahi socket or dbus methods with invalid hostnames.

5

Are there any references for further information about CVE-2021-3502?

Yes, you can find more information about CVE-2021-3502 in the following references: 1. [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=1946914) 2. [Avahi GitHub Issue](https://github.com/lathiat/avahi/issues/338)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203