Vulnerability DatabaseCVE-2026-133730

CVE-2026-133730: 
dnsmasq vulnerability analysis and mitigation

Overview

CVE-2026-133730 is a use-after-free vulnerability in dnsmasq's DHCPv6 relay processing that allows a remote, unauthenticated attacker to crash the service by sending a crafted sequence of network packets. The flaw resides in the relay_upstream6() function in src/rfc3315.c, where a pointer into the output buffer may become stale after put_opt6() reallocates and frees that buffer. Affected versions are dnsmasq 2.87 through 2.93 and the current git master branch; RHEL 10 (shipping version 2.90) is affected, while RHEL 8 and RHEL 9 are not. It was disclosed on November 20, 2026, and carries a CVSS v3.1 base score of 5.9 (Medium) (Red Hat CVE, Red Hat Bugzilla).

Technical details

The root cause is a use-after-free (CWE-416) in relay_upstream6() within dnsmasq's DHCPv6 relay code (src/rfc3315.c). When processing a relayed DHCPv6 packet, the function retains a pointer to a position within the output buffer; if put_opt6() subsequently triggers a reallocation of that buffer (e.g., due to growing packet size), the original pointer becomes a dangling reference to freed memory. A remote attacker with UDP access to port 547 on the relay interface can trigger this condition by sending a sequence of packets with incrementally increasing sizes, causing dnsmasq to write through the stale pointer and crash. Exploitation requires the target to be configured as a DHCPv6 relay (dhcp-relay= directive), which is a non-default configuration (Red Hat Bugzilla, Red Hat CVE).

Impact

Successful exploitation results in a crash of the dnsmasq process, causing a Denial of Service (DoS) that disrupts DHCPv6 address assignment for all clients relying on the affected relay. There is no impact on confidentiality or integrity under the current assessment — the vulnerability exclusively affects availability. Systems running dnsmasq as a combined DNS/DHCP server would also lose DNS resolution services during the outage. Red Hat rates the impact as Moderate because exploitation is limited to non-default DHCPv6 relay configurations and does not result in data exposure or code execution under typical conditions (Red Hat CVE).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The vulnerability has an EPSS score of 0.0, reflecting very low current exploitation probability (GitHub Advisory). It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to have network access to UDP port 547 on the relay interface and the target must be explicitly configured as a DHCPv6 relay, significantly limiting the attack surface (Red Hat CVE). The vulnerability was reported by Akin Yilmaz of DecompilerAI (Red Hat CVE).

Exploitation steps

  1. Reconnaissance: Identify systems running dnsmasq versions 2.87–2.93 that are configured as DHCPv6 relays (i.e., have dhcp-relay= entries in /etc/dnsmasq.conf or /etc/dnsmasq.d/). Network scanning tools can identify hosts with UDP port 547 open.
  2. Confirm relay configuration: Verify the target is acting as a DHCPv6 relay by sending a DHCPv6 Relay-Forward message and observing whether the host forwards it upstream.
  3. Craft packet sequence: Prepare a series of valid DHCPv6 Relay-Forward packets with incrementally increasing payload sizes designed to trigger buffer reallocation within put_opt6() during relay_upstream6() processing.
  4. Trigger use-after-free: Send the crafted packet sequence to UDP port 547 on the target's relay-facing interface. The growing packet sizes cause put_opt6() to reallocate the output buffer, invalidating the retained pointer in relay_upstream6().
  5. Achieve DoS: The dnsmasq process writes through the stale pointer to freed memory and crashes, taking down DHCPv6 relay and DNS services until the service is manually restarted (Red Hat Bugzilla, Red Hat CVE).

Indicators of compromise

  • Network: Repeated UDP packets to port 547 from an unexpected or external source IP, particularly a sequence of packets with incrementally increasing sizes targeting the dnsmasq relay interface.
  • Logs: Sudden termination entries for the dnsmasq process in /var/log/messages or journalctl -u dnsmasq; segmentation fault or crash dump entries referencing relay_upstream6() or rfc3315.c.
  • Process: Unexpected dnsmasq process restarts (if configured with auto-restart); absence of dnsmasq in the process list following network activity on port 547.
  • File System: Core dump files (e.g., core.*) in the dnsmasq working directory or /var/lib/dnsmasq/ following a crash event.

Mitigation and workarounds

Red Hat recommends two primary mitigations while patches are pending. First, if DHCPv6 relay functionality is not required, remove or comment out all dhcp-relay= entries in /etc/dnsmasq.conf or files under /etc/dnsmasq.d/, then restart the service with systemctl restart dnsmasq. Second, if DHCPv6 relay is needed, restrict incoming traffic on UDP port 547 to trusted interfaces or subnets using firewalld: firewall-cmd --remove-port=547/udp --permanent && firewall-cmd --reload, or configure rich rules to permit port 547 only from designated DHCPv6 clients and relay sources. Note that RHEL 8 and RHEL 9 are not affected; only RHEL 10 (dnsmasq 2.90) and upstream versions 2.87–2.93 require remediation (Red Hat CVE).

Community reactions

Red Hat classified the vulnerability as Moderate severity, noting that exploitation is restricted to non-default DHCPv6 relay configurations and that standard RHEL deployments are not exposed by default. The vulnerability was credited to Akin Yilmaz of DecompilerAI, suggesting responsible disclosure through a security research channel. No significant broader community discussion or media coverage has been identified as of the disclosure date (Red Hat CVE).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

dnsmasq

Affected

sid

dnsmasq

Affected

trixie

dnsmasq

Affected

Ubuntu

Unknown

bionic (esm-infra)

dnsmasq

Unknown

devel

dnsmasq

Unknown

focal (esm-infra)

dnsmasq

Unknown

jammy

dnsmasq

Unknown

noble

dnsmasq

Unknown

resolute

dnsmasq

Unknown

trusty (esm-infra-legacy)

dnsmasq

Unknown

xenial (esm-infra-legacy)

dnsmasq

Unknown

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

dnsmasq.src

Affected

Source: This report was generated using AI

Related dnsmasq vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93008MEDIUM6.8
  • dnsmasq logodnsmasq
  • dnsmasq
NoNoOct 29, 2026
CVE-2026-133730MEDIUM5.9
  • dnsmasq logodnsmasq
  • dnsmasq.src
NoNoNov 20, 2026
CVE-2026-93011MEDIUM5.3
  • dnsmasq logodnsmasq
  • dnsmasq.src
NoNoOct 29, 2026
CVE-2026-93010MEDIUM4.3
  • dnsmasq logodnsmasq
  • dnsmasq
NoNoOct 29, 2026
CVE-2026-93009MEDIUM4.3
  • dnsmasq logodnsmasq
  • dnsmasq
NoNoOct 29, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management