cve.bz

CVE-2022-2526 Use After Free

9.8 criticalEPSS 1.4%Fix available

Critical (9.8). EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-2526 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-2526?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-2526?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-2526 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
systemd_project:systemd240

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14systemd240-1DEBIAN-CVE-2022-2526
Ubuntu18.04:LTSsystemd237-3ubuntu10.54UBUNTU-CVE-2022-2526 USN-5583-1 USN-5583-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationsystemd, libgudev1, systemd-libs and 8 more0:219-78.el7_9.7RHSA-2022:6160
Red Hatenterprise_linux:7::computenodesystemd-devel, libgudev1-devel, systemd-networkd and 3 more0:219-78.el7_9.7RHSA-2022:6160
Red Hatenterprise_linux:8::baseossystemd, systemd-pam, systemd-libs and 13 more0:239-58.el8_6.4RHSA-2022:6206
Red Hatrhel_e4s:8.1::baseossystemd, systemd-pam, systemd-libs and 13 more0:239-18.el8_1.11RHSA-2022:6163
Red Hatrhel_eus:8.2::baseossystemd, systemd-pam, systemd-libs and 13 more0:239-31.el8_2.9RHSA-2022:6162
Red Hatrhel_eus:8.4::baseossystemd, systemd-pam, systemd-libs and 13 more0:239-45.el8_4.12RHSA-2022:6161
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.5.2-202209140405_8.6RHSA-2022:6551
AlmaLinux8systemd, systemd-pam, systemd-libs and 5 more239-58.el8_6.4ALSA-2022:6206
Rocky Linux8systemd0:239-58.el8_6.4RLSA-2022:6206

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is rated as important because this flaw can easily compromise the confidentiality, integrity, or availability of resources but that allows local or authenticated users to gain additional privileges, allow unauthenticated remote users to view resources that should otherwise be protected by authentication or other controls, allow authenticated remote users to execute arbitrary code, or allow remote users to cause a denial of service. But this flaw does not easily exploit by a remote unauthenticated attacker.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7systemd-0:219-78.el7_9.7Fixed 2022-08-24RHSA-2022:6160
Red Hat Enterprise Linux 8systemd-0:239-58.el8_6.4Fixed 2022-08-29RHSA-2022:6206
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionssystemd-0:239-18.el8_1.11Fixed 2022-08-24RHSA-2022:6163
Red Hat Enterprise Linux 8.2 Extended Update Supportsystemd-0:239-31.el8_2.9Fixed 2022-08-24RHSA-2022:6162
Red Hat Enterprise Linux 8.4 Extended Update Supportsystemd-0:239-45.el8_4.12Fixed 2022-08-24RHSA-2022:6161
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.5.2-202209140405_8.6Fixed 2022-09-19RHSA-2022:6551
Red Hat Enterprise Linux 9systemdNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-2526.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-105-08ABB M2M Gateway2025-04-07EnergyABB M2M Gateway ARM600, firmware versions = 4.1.2 <= 5.0.3, ABB M2M Gateway SW, software versions = 5.0.1 <= 5.0.3none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON