CVE-2026-4892: High severity Dnsmasq Dnsmasq vulnerability

Published Apr 14, 2026
·
Updated

A heap-based out-of-bounds write vulnerability in the DHCPv6 implementation of dnsmasq allows local attackers to execute arbitrary code with root privileges via a crafted DHCPv6 packet.

Other sources

In helper.c:265, the DHCPv6 CLID is hex-encoded via sprintf("%.2x") into daemon->packet (5,131 bytes) with no length cap on the CLID. DHCPv6 CLIDs can be up to 65,535 bytes (131,070 hex characters). The helper process retains root privileges. log6packet() already caps CLID to 100 bytes for logging, but the helper code path was missed. Fix: add && i < 100 bound to the encoding loop, matching the logging cap.

Red Hat

Affected Software

2 affected componentsFixes available
Dnsmasq Dnsmasq
debian/dnsmasq<=2.85-1, <=2.85-1+deb11u1, <=2.92-4
2.90-4~deb12u22.91-1+deb13u12.92-5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 2.90-4~deb12u2Fixed in 2.91-1+deb13u1Fixed in 2.92-5
  2. Configuration

    In helper.c (around line 265), update the DHCPv6 CLID hex-encoding loop to add a length cap by adding `&& i < 100` to the loop condition so encoding into `daemon->packet` (5,131 bytes) is bounded, matching the existing `log6_packet()` CLID cap of 100 bytes for logging. This mitigates CVE-2026-4892 heap-based out-of-bounds write that can allow arbitrary code execution as root.

    dnsmasq DHCPv6 helper (helper.c) CLID hex-encoding loop bound = add && i < 100 bound to the encoding loop

Event History

Apr 14, 2026
Data Sourced
via Red Hat·10:50 PM
DescriptionSeverityAffected Software
May 11, 2026
CVE Published
via MITRE·04:47 PM
Data Sourced
via MITRE·04:47 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverity
Data Sourced
via NVD·06:16 PM
Weakness
May 13, 2026
Data Sourced
via Ubuntu·03:07 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·03:08 PM
Description
May 16, 2026
Data Sourced
via Debian·03:10 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-4892?

CVE-2026-4892 is classified as a high-severity vulnerability due to its potential to allow local attackers to execute arbitrary code with root privileges.

2

How do I fix CVE-2026-4892?

To remediate CVE-2026-4892, update the dnsmasq package to version 2.90-4~deb12u2 or later, including 2.91-1+deb13u1 or 2.92-5.

3

What software is affected by CVE-2026-4892?

CVE-2026-4892 affects the dnsmasq software, specifically versions prior to 2.90-4~deb12u2, 2.91-1+deb13u1, and 2.92-5.

4

Can CVE-2026-4892 be exploited remotely?

CVE-2026-4892 requires local access to exploit, as it relies on sending a crafted DHCPv6 packet.

5

What type of vulnerability is CVE-2026-4892?

CVE-2026-4892 is a heap-based out-of-bounds write vulnerability found in the DHCPv6 implementation of dnsmasq.

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