Cloudanix VulnDB

CVE-2024-52616

Medium · 5.3

CVSS

5.3

EPSS

0.7%

Published

Nov 21, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A network service that helps devices discover each other uses numbers that become easy to guess after the first use, letting attackers send fake information to trick devices on the same network.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Network Service
Class
Cryptographic Weakness
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The Avahi daemon initializes DNS transaction IDs with a single random value at startup and then increments them sequentially, enabling attackers to predict and spoof responses for DNS transactions.

Why it matters to the business

Attackers can inject false name resolution data into local networks, disrupting service discovery and potentially redirecting traffic or causing availability issues for dependent applications.

How an attack unfolds

An attacker on the local network observes Avahi traffic to determine the initial transaction ID pattern, then crafts spoofed DNS responses with guessed sequential IDs to poison mDNS resolutions used by clients and services.

How to fix it

Upgrade Avahi packages to versions that re-randomize transaction IDs per query or implement stronger cryptographic ID generation; apply the listed fixed versions for affected distributions such as flashplugin-nonfree on Ubuntu 14.04 LTS.

How to confirm the fix worked

Review Avahi source or runtime behavior to confirm transaction IDs are randomized on each query rather than incremented; test by monitoring multiple queries for non-sequential ID distribution.

Typical attack path

  1. Observe initial Avahi mDNS queries on the local network to capture the starting transaction ID
  2. Calculate subsequent IDs based on the sequential increment pattern
  3. Send forged DNS responses matching predicted transaction IDs before legitimate replies arrive
  4. Poison local caches to redirect service discovery or name resolutions

How to detect it

Inspect system and network logs for repeated mDNS queries followed by responses with sequentially incrementing transaction IDs; correlate with unexpected service discovery failures or redirects.

What your security team should do

  • Apply available updates to Avahi immediately given the public nature of the weakness
  • Monitor local network traffic for anomalous mDNS responses
  • Consider network segmentation to limit exposure of mDNS services
  • Review dependencies on Avahi in critical service discovery paths

The record

A flaw was found in the Avahi-daemon, where it initializes DNS transaction IDs randomly only once at startup, incrementing them sequentially after that. This predictable behavior facilitates DNS spoofing attacks, allowing attackers to guess transaction IDs.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:9 avahi 0 0.8-22.el9_6
AlmaLinux:9 avahi-autoipd 0 0.8-22.el9_6
AlmaLinux:9 avahi-compat-howl 0 0.8-22.el9_6
AlmaLinux:9 avahi-compat-howl-devel 0 0.8-22.el9_6
AlmaLinux:9 avahi-compat-libdns_sd 0 0.8-22.el9_6
AlmaLinux:9 avahi-compat-libdns_sd-devel 0 0.8-22.el9_6
AlmaLinux:9 avahi-devel 0 0.8-22.el9_6
AlmaLinux:9 avahi-glib 0 0.8-22.el9_6
AlmaLinux:9 avahi-glib-devel 0 0.8-22.el9_6
AlmaLinux:9 avahi-gobject 0 0.8-22.el9_6
AlmaLinux:9 avahi-gobject-devel 0 0.8-22.el9_6
AlmaLinux:9 avahi-libs 0 0.8-22.el9_6
AlmaLinux:9 avahi-tools 0 0.8-22.el9_6
Alpine:v3.22 avahi 0 0.8-r21
Debian:11 avahi 0 No fix
Debian:12 avahi 0 No fix
Debian:13 avahi 0 No fix
Mageia:9 avahi 0 0.8-10.2.mga9
SUSE:Linux Enterprise Micro 5.2 avahi 0 0.7-150100.3.40.1
SUSE:Linux Enterprise Micro 5.3 avahi 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Micro 5.4 avahi 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Micro 5.5 avahi 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 avahi 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 avahi-glib2 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 avahi 0 0.8-150600.15.6.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 avahi-glib2 0 0.8-150600.15.6.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 avahi 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 avahi-glib2 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 avahi 0 0.8-150600.15.6.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 avahi-glib2 0 0.8-150600.15.6.1
SUSE:Linux Enterprise Module for Package Hub 15 SP5 avahi 0 0.8-150400.7.20.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6 avahi 0 0.8-150600.15.6.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 avahi 0 0.6.32-32.30.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 avahi-glib2 0 0.6.32-32.30.1
Ubuntu:20.04:LTS avahi 0 No fix
Ubuntu:22.04:LTS avahi 0 No fix
Ubuntu:24.04:LTS avahi 0 No fix
Ubuntu:24.10 avahi 0 No fix
Ubuntu:25.04 avahi 0 No fix
Ubuntu:25.10 avahi 0 No fix
Ubuntu:Pro:14.04:LTS avahi 0 No fix
Ubuntu:Pro:16.04:LTS avahi 0 No fix
Ubuntu:Pro:18.04:LTS avahi 0 No fix
Ubuntu:Pro:20.04:LTS avahi 0 No fix
openSUSE:Leap 15.5 avahi 0 0.8-150400.7.20.1
openSUSE:Leap 15.5 avahi-glib2 0 0.8-150400.7.20.1
openSUSE:Leap 15.5 avahi-qt5 0 0.8-150400.7.20.1
openSUSE:Leap 15.6 avahi 0 0.8-150600.15.6.1
openSUSE:Leap 15.6 avahi-glib2 0 0.8-150600.15.6.1
openSUSE:Leap 15.6 avahi-qt5 0 0.8-150600.15.6.1
openSUSE:Leap Micro 5.5 avahi 0 0.8-150400.7.20.1
openSUSE:Tumbleweed avahi 0 0.8-37.1

Related vulnerabilities