{"id":"CVE-2022-2526","details":"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.","modified":"2026-05-18T05:53:42.053060059Z","published":"2022-09-09T00:00:00Z","related":["ALSA-2022:6206"],"database_specific":{"cwe_ids":["CWE-416"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2526.json","cna_assigner":"redhat"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2526.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2526"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20221111-0005/"},{"type":"FIX","url":"https://github.com/systemd/systemd/commit/d973d94dec349fb676fdd844f6fe2ada3538f27c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd","events":[{"introduced":"0"},{"last_affected":"1742aae2aa8cd33897250d6fcfbe10928e43eb2f"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"240"}],"cpe":"cpe:2.3:a:systemd_project:systemd:240:*:*:*:*:*:*:*","source":"CPE_FIELD"}}],"versions":["v240","v239","v238","v237","v236","v235","v234","v233","v232","v231","v230","v229","v228","v227","v226","v225","v224","v223","v222","v221","v219","v220","v218","v217","v216","v215","v214","v213","v212","v211","v210","v209","v208","v207","v206","v205","v204","v203","v202","v201","v200","v199","v198","v197","v196","v195","v194","v193","v192","v191","v190","v189","v188","v187","v186","v185","v184","v183","v44","v43","v42","v41","v40","v39","v38","v37","v36","v35","v34","v33","v32","v31","v30","v29","v28","v27","v26","v25","v24","v23","v22","v21","v20","v19","v18","v17","v16","v15","v14","v13","v12","v11","v10","v9","v8","v7","v6","v5","v4","v3","v2","v1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2526.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd-stable","events":[{"introduced":"0"},{"last_affected":"1742aae2aa8cd33897250d6fcfbe10928e43eb2f"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"240"}],"cpe":"cpe:2.3:a:systemd_project:systemd:240:*:*:*:*:*:*:*","source":"CPE_FIELD"}}],"versions":["v240","v239","v238","v237","v236","v235","v234","v233","v232","v231","v230","v229","v228","v227","v226","v225","v224","v223","v222","v221","v219","v220","v218","v217","v216","v215","v214","v213","v212","v211","v210","v208","v209","v201","v204","v207","v206","v205","v203","v202","v200","v199","v198","v197","v196","systemd-v196","v195","systemd-v195","v194","systemd-v194","v193","systemd-v193","v192","systemd-v192","v191","systemd-v191","v190","systemd-v190","v189","systemd-v189","v188","systemd-v188","v187","systemd-v187","v186","systemd-v186","v185","systemd-v185","v184","systemd-v184","v183","systemd-v183","v44","systemd-v44","v43","systemd-v43","v42","systemd-v42","v41","systemd-v41","v40","systemd-v40","v39","systemd-v39","v38","systemd-v38","v37","systemd-v37","v36","systemd-v36","v35","systemd-v35","v34","systemd-v34","v33","systemd-v33","v32","systemd-v32","v31","systemd-v31","v30","systemd-v30","v29","systemd-v29","v28","systemd-v28","v27","systemd-v27","v26","systemd-v26","v25","systemd-v25","v24","systemd-v24","v23","systemd-v23","v22","systemd-v22","v21","systemd-v21","v20","systemd-v20","v19","systemd-v19","v18","systemd-v18","v17","systemd-v17","v16","systemd-v16","v15","systemd-v15","v14","systemd-v14","v13","systemd-v13","v12","systemd-v12","v11","systemd-v11","v10","systemd-v10","v9","systemd-v9","v8","systemd-v8","v7","systemd-v7","v6","systemd-v6","v5","systemd-v5","v4","systemd-v4","v3","systemd-v3","v2","systemd-v2","v1","systemd-v1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2526.json"}}],"schema_version":"1.7.5"}