Skip to content
OpenAdvisories
Unscored CVE-2022-2526 EUVD-2022-34781GHSA-f4r4-2gxf-88xj

A use-after-free vulnerability was found in systemd. This issue occurs due to the on_stream_io() function and dns_stream_complete() functio…

Published Sep 9, 2022 · Updated Aug 3, 2024 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— systemd-resolved systemd 240 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 systemd 240-1 —
Debian 13 systemd 240-1 —
Debian 12 systemd 240-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS systemd 237-3ubuntu10.54 USN-5583-2, USN-5583-1
ReleasePackageFixed inAdvisory
RHEL 8 systemd +7 239-58.el8_6.4 RHSA-2022:6206
RHEL 7 systemd +9 219-78.el7_9.7 RHSA-2022:6160
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 redhat-virtualization-host +1 4.5.2-202209140405_8.6 RHSA-2022:6551
RHEL 8.4 EUS systemd +7 239-45.el8_4.12 RHSA-2022:6161
RHEL 8.2 EUS systemd +7 239-31.el8_2.9 RHSA-2022:6162
RHEL 8.1 E4S systemd +7 239-18.el8_1.11 RHSA-2022:6163

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 systemd +7 239-58.el8_6.4 ALSA-2022:6206

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 systemd 239-58.el8_6.4 RLSA-2022:6206

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 systemd +9 219-78.amzn2.0.20 ALAS2-2022-1854

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 systemd +7 239-58.0.1.el8_6.4 ELSA-2022-6206
Oracle Linux 7 systemd +9 219-78.0.9.el7_9.7 ELSA-2022-6160

Advisories 18

References