CVE-2026-4893: Medium severity Dnsmasq Dnsmasq vulnerability

Published Apr 14, 2026
·
Updated

An information disclosure vulnerability in dnsmasq allows remote attackers to bypass source checks via a crafted DNS packet with RFC 7871 client subnet information.

Other sources

In forward.c:724, processreply() calls checksource(header, plen, pheader, querysource) but plen at this point holds the OPT record length (~23 bytes), not the packet length n. With the wrong length, all bounds checks inside checksource() fail and the function unconditionally returns 1, bypassing RFC 7871 Section 9.2 ECS source validation entirely. Fix: change plen to n in the function call.

Red Hat

Affected Software

4 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
Microsoft azl3 dnsmasq 2.90-1
Microsoft azl3 dnsmasq 2.92-1

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 forward.c (process_reply at line 724), change the function call so check_source(header, plen, pheader, query_source) uses plen set to n (the packet length), not the OPT record length (~23 bytes), i.e., change plen to n in the function call.

    dnsmasq (forward.c: process_reply / check_source) ECS length argument (plen) = set plen to n
  3. Operational

    Rebuild and redeploy dnsmasq after applying the forward.c change (plen to n) so that check_source() bounds checks and RFC 7871 Section 9.2 ECS source validation are no longer bypassed for crafted packets.

Event History

Apr 14, 2026
Data Sourced
via Red Hat·10:55 PM
DescriptionSeverityAffected Software
May 11, 2026
CVE Published
via MITRE·04:48 PM
Data Sourced
via MITRE·04:48 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverity
May 13, 2026
Data Sourced
via Ubuntu·03:07 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·03:08 PM
Description
May 15, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:01 AM
Affected Software
Updated
via Microsoft·08:01 AM
DescriptionSeverity
May 16, 2026
Data Sourced
via Debian·03:10 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-4893?

CVE-2026-4893 is rated as a moderate severity vulnerability due to its potential for information disclosure.

2

How do I fix CVE-2026-4893?

You can mitigate CVE-2026-4893 by upgrading dnsmasq to versions 2.90-4~deb12u2, 2.91-1+deb13u1, or 2.92-5.

3

What type of attacks can exploit CVE-2026-4893?

CVE-2026-4893 can be exploited by remote attackers using crafted DNS packets with manipulated client subnet information.

4

Which versions of dnsmasq are affected by CVE-2026-4893?

Affected versions of dnsmasq include versions prior to 2.90-4~deb12u2, 2.91-1+deb13u1, and 2.92-5.

5

Is there a way to prevent CVE-2026-4893 from being exploited?

Preventing CVE-2026-4893 can involve implementing network-level protections and ensuring dnsmasq is updated to a secure version.

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