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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | systemd | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-container | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-devel | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-journal-remote | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-libs | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-pam | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-tests | 239-58.el8_6.4 | ALSA-2022:6206 |
| AlmaLinux:8 | systemd-udev | 239-58.el8_6.4 | ALSA-2022:6206 |
| Debian:12 | systemd | 240-1 | DEBIAN-CVE-2022-2526 |
| Debian:13 | systemd | 240-1 | DEBIAN-CVE-2022-2526 |
| Debian:14 | systemd | 240-1 | DEBIAN-CVE-2022-2526 |
| Rocky Linux:8 | systemd | 0:239-58.el8_6.4 | RLSA-2022:6206 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | systemd-resolved | systemd 240 |
Weakness: CWE-416