CVEfocus › CVE database › CVE-2022-2526

CVE-2022-2526

EPSS 1.4% (higher than 73% of CVEs)Published 2022-09-09Updated 2024-08-03Assigner: redhat

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.

CWE-416

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

31Fixed
1Fix pending
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04systemdNot affected
vulnerable_code_not_present
Ubuntu 18.04systemdFixed237-3ubuntu10.54UBUNTU-CVE-2022-2526
Ubuntu 16.04systemdFix pending
Debian 14systemdFixed240-1DEBIAN-CVE-2022-2526
Debian 13systemdFixed240-1DEBIAN-CVE-2022-2526
Debian 12systemdFixed240-1DEBIAN-CVE-2022-2526
Red Hat Enterprise Linux 9rhel-net-naming-sysattrsNot affected
Red Hat Enterprise Linux 9systemdNot affected
Red Hat Enterprise Linux 9systemd-boot-unsignedNot affected
Red Hat Enterprise Linux 9systemd-containerNot affected
Red Hat Enterprise Linux 9systemd-develNot affected
Red Hat Enterprise Linux 9systemd-journal-remoteNot affected
Red Hat Enterprise Linux 9systemd-libsNot affected
Red Hat Enterprise Linux 9systemd-oomdNot affected
Red Hat Enterprise Linux 9systemd-pamNot affected
Red Hat Enterprise Linux 9systemd-resolvedNot affected
Red Hat Enterprise Linux 9systemd-rpm-macrosNot affected
Red Hat Enterprise Linux 9systemd-udevNot affected
Red Hat Enterprise Linux 9systemd-ukifyNot affected
Red Hat Enterprise Linux 8systemdFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-containerFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-develFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-journal-remoteFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-libsFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-pamFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-testsFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 8systemd-udevFixed0:239-58.el8_6.4RHSA-2022:6206
Red Hat Enterprise Linux 7libgudev1Fixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7libgudev1-develFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemdFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-develFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-journal-gatewayFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-libsFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-networkdFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-pythonFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-resolvedFixed0:219-78.el7_9.7RHSA-2022:6160
Red Hat Enterprise Linux 7systemd-sysvFixed0:219-78.el7_9.7RHSA-2022:6160
AlmaLinux 8systemdFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-containerFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-develFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-journal-remoteFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-libsFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-pamFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-testsFixed239-58.el8_6.4ALSA-2022:6206
AlmaLinux 8systemd-udevFixed239-58.el8_6.4ALSA-2022:6206
Rocky Linux 8systemdFixed0:239-58.el8_6.4RLSA-2022:6206

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.