CVE-2022-2526

Source
https://cve.org/CVERecord?id=CVE-2022-2526
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2526.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-2526
Downstream
Related
Published
2022-09-09T00:00:00Z
Modified
2026-07-11T04:06:26.523987372Z
Summary
[none]
Details

A use-after-free vulnerability was found in systemd. This issue occurs due to the onstreamio() function and dnsstreamcomplete() 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.

Database specific
{
    "cna_assigner": "redhat",
    "cwe_ids": [
        "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2526.json"
}
References

Affected packages

Git / github.com/systemd/systemd

Affected ranges

Type
GIT
Repo
https://github.com/systemd/systemd
Events
Database specific
{
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:systemd_project:systemd:240:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "240"
        },
        {
            "last_affected": "240"
        }
    ]
}
Type
GIT
Repo
https://github.com/systemd/systemd-stable
Events
Database specific
{
    "source": "CPE_STRING",
    "cpe": "cpe:2.3:a:systemd_project:systemd:240:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "240"
        },
        {
            "last_affected": "240"
        }
    ]
}

Affected versions

Other
240
systemd 240
v240

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2526.json"