# CVE-2022-0934: Use after free in dnsmasq

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

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 29 Aug 2022
- **Updated:** 3 Nov 2025
- **Also known as:** ALPINE-CVE-2022-0934, ALSA-2022:7633, ALSA-2022:8070, AZL-25317, CLEANSTART-2026-LH68437, CLSA-2026-1778157268, DEBIAN-CVE-2022-0934, GHSA-wpmh-x6rm-9p34, MGASA-2022-0233, OESA-2022-1761, RHSA-2022:7633, RHSA-2022:8070, RLSA-2022:7633, RLSA-2022:8070, SUSE-SU-2022:1307-1, UBUNTU-CVE-2022-0934, USN-5408-1, openSUSE-SU-2024:11998-1

## 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 (Use After Free)

## Which versions are affected by CVE-2022-0934?

It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `dnsmasq` | AlmaLinux:8 | All versions | 2.79-24.el8 |
| `dnsmasq-utils` | AlmaLinux:8 | All versions | 2.79-24.el8 |
| `dnsmasq` | AlmaLinux:9 | All versions | 2.85-5.el9 |
| `dnsmasq-utils` | AlmaLinux:9 | All versions | 2.85-5.el9 |
| `dnsmasq` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.79-24.el8 |
| `dnsmasq-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.79-24.el8 |
| `dnsmasq-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.79-24.el8 |
| `dnsmasq-utils` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.79-24.el8 |
| `dnsmasq-utils-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:2.79-24.el8 |
| `dnsmasq` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.85-5.el9 |
| `dnsmasq-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.85-5.el9 |
| `dnsmasq-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.85-5.el9 |
| `dnsmasq-utils` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.85-5.el9 |
| `dnsmasq-utils-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:2.85-5.el9 |
| `dnsmasq` | Rocky Linux:8 | All versions | 0:2.79-24.el8 |
| `dnsmasq` | Rocky Linux:9 | All versions | 0:2.85-5.el9 |
| `dnsmasq` | SUSE:Enterprise Storage 6 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Enterprise Storage 7 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Micro 5.0 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Micro 5.1 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Micro 5.2 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Real Time 15 SP2 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Server 15 SP2-BCL | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Manager Proxy 4.1 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Manager Retail Branch Server 4.1 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | SUSE:Manager Server 4.1 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | openSUSE:Leap 15.3 | All versions | 2.86-150100.7.20.1 |
| `dnsmasq` | openSUSE:Tumbleweed | All versions | 2.86-4.1 |

Products: Redhat Enterprise Linux, Thekelleys Dnsmasq.

## How do I fix CVE-2022-0934?

Apply the vendor's patch.

## Is CVE-2022-0934 being exploited?

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

## Other vulnerabilities in Redhat Enterprise Linux

- [CVE-2018-14667](https://insights.sbomify.com/CVE-2018-14667/): Red Hat JBoss RichFaces Framework Expression Language Injection (critical 9.8, exploited in the wild)
- [CVE-2021-20325](https://insights.sbomify.com/CVE-2021-20325/): Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit (critical 9.8)
- [CVE-2018-25011](https://insights.sbomify.com/CVE-2018-25011/): Memory corruption in libwebp (critical 9.8)
- [CVE-2018-25014](https://insights.sbomify.com/CVE-2018-25014/): Other in libwebp (critical 9.8)
- [CVE-2014-3585](https://insights.sbomify.com/CVE-2014-3585/): Supply chain in redhat-upgrade-tool (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-0934 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2022-0934 in the wild and no public exploit code.

Affected product: Redhat Enterprise Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-0934/ (Markdown: https://insights.sbomify.com/CVE-2022-0934/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-0934
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-0934
- OSV: https://osv.dev/vulnerability/CVE-2022-0934

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-0934/
Summaries are generated and may contain mistakes; the official description above is the record.
