CVE-2022-2526 Use after free in systemd-resolved

Critical 9.8 Published Updated

A use-after-free in systemd-resolved allows attackers to potentially execute code or cause denial of service via DNS stream handling.

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-2526?

CVE-2022-2526 is a critical use after free vulnerability in Netapp Active Iq Unified Manager, published on 9 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A use-after-free vulnerability was found in systemd. This issue occurs due to the on_stream_io() function and dns_stream_complete() function in 'resolved-dns-stream.c' not incrementing the reference counting for the DnsStream object. Therefore, other functions and callbacks called can dereference the DNSStream object, causing the use-after-free when the reference is still used later.

Weakness: CWE-416

Which versions are affected by CVE-2022-2526?

It affects 6 products.

Linux distribution packages (40)
systemd AlmaLinux:8All versions239-58.el8_6.4
systemd-container AlmaLinux:8All versions239-58.el8_6.4
systemd-devel AlmaLinux:8All versions239-58.el8_6.4
systemd-journal-remote AlmaLinux:8All versions239-58.el8_6.4
systemd-libs AlmaLinux:8All versions239-58.el8_6.4
systemd-pam AlmaLinux:8All versions239-58.el8_6.4
systemd-tests AlmaLinux:8All versions239-58.el8_6.4
systemd-udev AlmaLinux:8All versions239-58.el8_6.4
libgudev1 Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
libgudev1-devel Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-devel Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-journal-gateway Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-libs Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-networkd Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-python Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-resolved Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
systemd-sysv Red Hat:enterprise_linux:7::clientAll versions0:219-78.el7_9.7
libgudev1-devel Red Hat:enterprise_linux:7::computenodeAll versions0:219-78.el7_9.7
systemd-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:219-78.el7_9.7
systemd-devel Red Hat:enterprise_linux:7::computenodeAll versions0:219-78.el7_9.7
systemd-journal-gateway Red Hat:enterprise_linux:7::computenodeAll versions0:219-78.el7_9.7
systemd-networkd Red Hat:enterprise_linux:7::computenodeAll versions0:219-78.el7_9.7
systemd-resolved Red Hat:enterprise_linux:7::computenodeAll versions0:219-78.el7_9.7
libgudev1 Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
libgudev1-devel Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-devel Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-journal-gateway Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-libs Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-networkd Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-python Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-resolved Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
systemd-sysv Red Hat:enterprise_linux:7::serverAll versions0:219-78.el7_9.7
libgudev1 Red Hat:enterprise_linux:7::workstationAll versions0:219-78.el7_9.7
libgudev1-devel Red Hat:enterprise_linux:7::workstationAll versions0:219-78.el7_9.7
systemd Red Hat:enterprise_linux:7::workstationAll versions0:219-78.el7_9.7
systemd-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:219-78.el7_9.7

Products include Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410s Firmware, Netapp H500s Firmware, Netapp H700s Firmware, Systemd Project Systemd.

How do I fix CVE-2022-2526?

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-2526 being exploited?

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

All Netapp Active Iq Unified Manager vulnerabilities

Sources

Also known as ALSA-2022:6206, CLSA-2022-1663183381, CLSA-2022-1663184219, DEBIAN-CVE-2022-2526, GHSA-f4r4-2gxf-88xj, RHSA-2022:6160 and 8 more.

Is CVE-2022-2526 in your software?

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

Check your SBOMs for free