Vulnerability · Published Sep 9, 2022 · Assigned by redhat

CVE-2022-2526

Critical 9.8

In plain English

A critical-severity use-after-free in systemd-resolved. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.4%top 27.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8systemd239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-container239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-devel239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-journal-remote239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-libs239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-pam239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-tests239-58.el8_6.4ALSA-2022:6206
AlmaLinux:8systemd-udev239-58.el8_6.4ALSA-2022:6206
Debian:12systemd240-1DEBIAN-CVE-2022-2526
Debian:13systemd240-1DEBIAN-CVE-2022-2526
Debian:14systemd240-1DEBIAN-CVE-2022-2526
Rocky Linux:8systemd0:239-58.el8_6.4RLSA-2022:6206

Affected products (as reported)

VendorProductVersions
n/a systemd-resolved systemd 240

Weakness: CWE-416

References