Use after free in systemd-resolved
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | systemd-resolved | systemd 240 | — | No fix listed | CNA |
- systemd-resolved Vendor— Affected systemd 240 Fixed in — No fix listed CNA
CPE configurations NVD · 10
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:systemd_project:systemd:240:*:*:*:*:*:*:* | 240 | Vulnerable | systemd |
| cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:h:netapp:h300s:-:*:*:*:*:*:*:* | not specified by NVD | Running on | NetApp |
| cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:h:netapp:h500s:-:*:*:*:*:*:*:* | not specified by NVD | Running on | NetApp |
| cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:h:netapp:h700s:-:*:*:*:*:*:*:* | not specified by NVD | Running on | NetApp |
| cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:h:netapp:h410s:-:*:*:*:*:*:*:* | not specified by NVD | Running on | NetApp |
- cpe:2.3:a:systemd_project:systemd:240:*:*:*:*:*:*:* Versions 240 Vulnerable ·systemd
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:h:netapp:h300s:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·NetApp
- cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:h:netapp:h500s:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·NetApp
- cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:h:netapp:h700s:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·NetApp
- cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:h:netapp:h410s:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·NetApp
Remediation
Red Hat 6 advisories
- RHSA-2022:6551 Released 2022-09-19 · Red Hat rating ImportantRed Hat Virtualization security update
- Red Hat Virtualization 4 Hypervisor for RHEL 8 redhat-virtualization-host-4.5.2-202209140405_8.6, redhat-virtualization-host-image-update-4.5.2-202209140405_8.6
- RHSA-2022:6206 Released 2022-08-29 · Red Hat rating Importantsystemd security update
- Red Hat Enterprise Linux BaseOS (v. 8) systemd-239-58.el8_6.4, systemd-container-239-58.el8_6.4, systemd-devel-239-58.el8_6.4 +5
- RHSA-2022:6160 Released 2022-08-24 · Red Hat rating Importantsystemd security update
- Red Hat Enterprise Linux Client (v. 7) libgudev1-219-78.el7_9.7, systemd-219-78.el7_9.7, systemd-libs-219-78.el7_9.7 +2
- Red Hat Enterprise Linux Client Optional (v. 7) libgudev1-devel-219-78.el7_9.7, systemd-devel-219-78.el7_9.7, systemd-journal-gateway-219-78.el7_9.7 +2
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) libgudev1-devel-219-78.el7_9.7, systemd-devel-219-78.el7_9.7, systemd-journal-gateway-219-78.el7_9.7 +2
- Red Hat Enterprise Linux Server (v. 7) libgudev1-219-78.el7_9.7, libgudev1-219-78.el7_9.7.ppc, libgudev1-devel-219-78.el7_9.7 +8
- Red Hat Enterprise Linux Server Optional (v. 7) systemd-journal-gateway-219-78.el7_9.7, systemd-networkd-219-78.el7_9.7, systemd-resolved-219-78.el7_9.7 +1
- Red Hat Enterprise Linux Workstation (v. 7) libgudev1-219-78.el7_9.7, libgudev1-devel-219-78.el7_9.7, systemd-219-78.el7_9.7 +4
- Red Hat Enterprise Linux Workstation Optional (v. 7) systemd-journal-gateway-219-78.el7_9.7, systemd-networkd-219-78.el7_9.7, systemd-resolved-219-78.el7_9.7
Show 3 more Red Hat advisories
- RHSA-2022:6161 Released 2022-08-24 · Red Hat rating Importantsystemd security update
- Red Hat Enterprise Linux BaseOS EUS (v.8.4) systemd-239-45.el8_4.12, systemd-container-239-45.el8_4.12, systemd-devel-239-45.el8_4.12 +5
- RHSA-2022:6162 Released 2022-08-24 · Red Hat rating Importantsystemd security update
- Red Hat Enterprise Linux BaseOS EUS (v. 8.2) systemd-239-31.el8_2.9, systemd-container-239-31.el8_2.9, systemd-devel-239-31.el8_2.9 +5
- RHSA-2022:6163 Released 2022-08-24 · Red Hat rating Importantsystemd security update
- Red Hat Enterprise Linux BaseOS E4S (v. 8.1) systemd-239-18.el8_1.11, systemd-container-239-18.el8_1.11, systemd-devel-239-18.el8_1.11 +5
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2022:6206 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.1) | Fixed | RHSA-2022:6163 |
| Red Hat Enterprise Linux BaseOS EUS (v. 8.2) | Fixed | RHSA-2022:6162 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.4) | Fixed | RHSA-2022:6161 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2022:6160 |
| Red Hat Virtualization 4 Hypervisor for RHEL 8 | Fixed | RHSA-2022:6551 |
Not affected: 2 products
- RHEL 8-based RHEV-H for RHEV 4 (build requirements)
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2022-2526
- 2026-10-03 Alias added: GHSA-f4r4-2gxf-88xj
References
Sources
- CVE-2022-2526 · CVE Program
- CVE-2022-2526 · NVD
- FIRST EPSS
- GHSA-f4r4-2gxf-88xj · GitHub Advisory Database · CC BY 4.0
- CVE-2022-2526 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences