{"id":"CVE-2022-2526","state":"PUBLISHED","title":"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 incremen","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.","publishedAt":"2022-09-09T00:00:00.000Z","updatedAt":"2024-08-03T00:39:08.031Z","severity":null,"assigner":"redhat","products":["n/a systemd-resolved"],"affected":[{"vendor":"n/a","product":"systemd-resolved","versions":[{"version":"systemd 240","status":"affected"}]}],"references":["https://github.com/systemd/systemd/commit/d973d94dec349fb676fdd844f6fe2ada3538f27c","https://security.netapp.com/advisory/ntap-20221111-0005/"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T19:50:01.354Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/2xxx/CVE-2022-2526.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-2526","state":"PUBLISHED","datePublished":"2022-09-09T00:00:00.000Z","dateUpdated":"2024-08-03T00:39:08.031Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2022-07-24T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"systemd-resolved","versions":[{"version":"systemd 240","status":"affected"}]}],"references":[{"url":"https://github.com/systemd/systemd/commit/d973d94dec349fb676fdd844f6fe2ada3538f27c"},{"url":"https://security.netapp.com/advisory/ntap-20221111-0005/"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","type":"CWE","lang":"en","description":"CWE-416"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2022-11-14T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/systemd/systemd/commit/d973d94dec349fb676fdd844f6fe2ada3538f27c","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20221111-0005/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T00:39:08.031Z"}}]}}}