{"id":"UBUNTU-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-04-22T15:26:27.880881Z","published":"2022-08-24T00:00:00Z","related":["USN-5583-1","USN-5583-2"],"upstream":["CVE-2022-2526"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-2526"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5583-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5583-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-2526"}],"affected":[{"package":{"name":"systemd","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/systemd@237-3ubuntu10.54?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"237-3ubuntu10.54"}]}],"versions":["234-2ubuntu12","235-2ubuntu3","235-3ubuntu2","235-3ubuntu3","237-3ubuntu3","237-3ubuntu4","237-3ubuntu6","237-3ubuntu7","237-3ubuntu8","237-3ubuntu10","237-3ubuntu10.2","237-3ubuntu10.3","237-3ubuntu10.4","237-3ubuntu10.6","237-3ubuntu10.9","237-3ubuntu10.11","237-3ubuntu10.12","237-3ubuntu10.13","237-3ubuntu10.15","237-3ubuntu10.17","237-3ubuntu10.19","237-3ubuntu10.20","237-3ubuntu10.21","237-3ubuntu10.22","237-3ubuntu10.23","237-3ubuntu10.24","237-3ubuntu10.25","237-3ubuntu10.26","237-3ubuntu10.28","237-3ubuntu10.29","237-3ubuntu10.31","237-3ubuntu10.33","237-3ubuntu10.38","237-3ubuntu10.39","237-3ubuntu10.40","237-3ubuntu10.41","237-3ubuntu10.42","237-3ubuntu10.43","237-3ubuntu10.44","237-3ubuntu10.45","237-3ubuntu10.46","237-3ubuntu10.47","237-3ubuntu10.48","237-3ubuntu10.49","237-3ubuntu10.50","237-3ubuntu10.51","237-3ubuntu10.52","237-3ubuntu10.53"],"ecosystem_specific":{"binaries":[{"binary_name":"libnss-myhostname","binary_version":"237-3ubuntu10.54"},{"binary_version":"237-3ubuntu10.54","binary_name":"libnss-mymachines"},{"binary_name":"libnss-resolve","binary_version":"237-3ubuntu10.54"},{"binary_name":"libnss-systemd","binary_version":"237-3ubuntu10.54"},{"binary_name":"libpam-systemd","binary_version":"237-3ubuntu10.54"},{"binary_version":"237-3ubuntu10.54","binary_name":"libsystemd0"},{"binary_name":"libudev1","binary_version":"237-3ubuntu10.54"},{"binary_name":"systemd","binary_version":"237-3ubuntu10.54"},{"binary_name":"systemd-container","binary_version":"237-3ubuntu10.54"},{"binary_name":"systemd-coredump","binary_version":"237-3ubuntu10.54"},{"binary_name":"systemd-journal-remote","binary_version":"237-3ubuntu10.54"},{"binary_name":"systemd-sysv","binary_version":"237-3ubuntu10.54"},{"binary_name":"systemd-tests","binary_version":"237-3ubuntu10.54"},{"binary_name":"udev","binary_version":"237-3ubuntu10.54"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2526.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}