CVE-2022-0934 Use after free in dnsmasq

High 7.5 Published Updated

An attacker can cause a denial of service in dnsmasq by sending a crafted packet that triggers a use-after-free flaw.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-0934?

CVE-2022-0934 is a high-severity use after free vulnerability in Redhat Enterprise Linux, published on 29 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A single-byte, non-arbitrary write/use-after-free flaw was found in dnsmasq. This flaw allows an attacker who sends a crafted packet processed by dnsmasq, potentially causing a denial of service.

Weakness: CWE-416

Which versions are affected by CVE-2022-0934?

It affects 2 products.

Linux distribution packages (38)
dnsmasq AlmaLinux:8All versions2.79-24.el8
dnsmasq-utils AlmaLinux:8All versions2.79-24.el8
dnsmasq AlmaLinux:9All versions2.85-5.el9
dnsmasq-utils AlmaLinux:9All versions2.85-5.el9
dnsmasq Red Hat:enterprise_linux:8::appstreamAll versions0:2.79-24.el8
dnsmasq-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:2.79-24.el8
dnsmasq-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:2.79-24.el8
dnsmasq-utils Red Hat:enterprise_linux:8::appstreamAll versions0:2.79-24.el8
dnsmasq-utils-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:2.79-24.el8
dnsmasq Red Hat:enterprise_linux:9::appstreamAll versions0:2.85-5.el9
dnsmasq-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.85-5.el9
dnsmasq-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:2.85-5.el9
dnsmasq-utils Red Hat:enterprise_linux:9::appstreamAll versions0:2.85-5.el9
dnsmasq-utils-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:2.85-5.el9
dnsmasq Rocky Linux:8All versions0:2.79-24.el8
dnsmasq Rocky Linux:9All versions0:2.85-5.el9
dnsmasq SUSE:Enterprise Storage 6All versions2.86-150100.7.20.1
dnsmasq SUSE:Enterprise Storage 7All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOSAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Micro 5.0All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Micro 5.1All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Micro 5.2All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Real Time 15 SP2All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Server 15 SP1-BCLAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Server 15 SP2-BCLAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions2.86-150100.7.20.1
dnsmasq SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions2.86-150100.7.20.1
dnsmasq SUSE:Manager Proxy 4.1All versions2.86-150100.7.20.1
dnsmasq SUSE:Manager Retail Branch Server 4.1All versions2.86-150100.7.20.1
dnsmasq SUSE:Manager Server 4.1All versions2.86-150100.7.20.1
dnsmasq openSUSE:Leap 15.3All versions2.86-150100.7.20.1
dnsmasq openSUSE:TumbleweedAll versions2.86-4.1

Products include Redhat Enterprise Linux, Thekelleys Dnsmasq.

How do I fix CVE-2022-0934?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-0934 being exploited?

There is no known exploitation of CVE-2022-0934 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-0934, ALSA-2022:7633, ALSA-2022:8070, AZL-25317, CLEANSTART-2026-LH68437, CLSA-2026-1778157268 and 12 more.

Is CVE-2022-0934 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free