UBUNTU-CVE-2022-2526

Source
https://ubuntu.com/security/CVE-2022-2526
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-2526.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-2526
Related
Published
2022-08-24T00:00:00Z
Modified
2024-11-20T12:15:29Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

References

Affected packages

Ubuntu:18.04:LTS / systemd

Package

Name
systemd
Purl
pkg:deb/ubuntu/systemd?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
237-3ubuntu10.56

Affected versions

Other

234-2ubuntu12
235-2ubuntu3
235-3ubuntu2
235-3ubuntu3
237-3ubuntu3
237-3ubuntu4
237-3ubuntu6
237-3ubuntu7
237-3ubuntu8
237-3ubuntu10

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
237-3ubuntu10.54

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-myhostname"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-myhostname-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-mymachines"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-mymachines-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-resolve"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-resolve-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-systemd"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libnss-systemd-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libpam-systemd"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libpam-systemd-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libsystemd-dev"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libsystemd0"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libsystemd0-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libudev-dev"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libudev1"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libudev1-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "libudev1-udeb"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-container"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-container-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-coredump"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-coredump-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-journal-remote"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-journal-remote-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-sysv"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-tests"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "systemd-tests-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "udev"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "udev-dbgsym"
        },
        {
            "binary_version": "237-3ubuntu10.56",
            "binary_name": "udev-udeb"
        }
    ]
}

Ubuntu:20.04:LTS / systemd

Package

Name
systemd
Purl
pkg:deb/ubuntu/systemd?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
245.4-4ubuntu3.17

Affected versions

Other

242-7ubuntu3
243-2ubuntu1
243-3ubuntu1
244-3ubuntu1

244.*

244.1-0ubuntu2
244.1-0ubuntu3
244.2-1ubuntu1
244.3-1ubuntu1

245.*

245.2-1ubuntu1
245.2-1ubuntu2
245.4-2ubuntu1
245.4-4ubuntu1
245.4-4ubuntu3
245.4-4ubuntu3.1
245.4-4ubuntu3.2
245.4-4ubuntu3.3
245.4-4ubuntu3.4
245.4-4ubuntu3.5
245.4-4ubuntu3.6
245.4-4ubuntu3.7
245.4-4ubuntu3.10
245.4-4ubuntu3.11
245.4-4ubuntu3.13
245.4-4ubuntu3.14
245.4-4ubuntu3.15
245.4-4ubuntu3.16

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-myhostname"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-myhostname-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-mymachines"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-mymachines-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-resolve"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-resolve-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-systemd"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libnss-systemd-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libpam-systemd"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libpam-systemd-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libsystemd-dev"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libsystemd0"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libsystemd0-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libudev-dev"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libudev1"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libudev1-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "libudev1-udeb"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-container"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-container-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-coredump"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-coredump-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-journal-remote"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-journal-remote-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-sysv"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-tests"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-tests-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-timesyncd"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "systemd-timesyncd-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "udev"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "udev-dbgsym"
        },
        {
            "binary_version": "245.4-4ubuntu3.17",
            "binary_name": "udev-udeb"
        }
    ]
}

Ubuntu:22.04:LTS / systemd

Package

Name
systemd
Purl
pkg:deb/ubuntu/systemd?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
249.11-0ubuntu3.4

Affected versions

248.*

248.3-1ubuntu8

249.*

249.5-2ubuntu1
249.5-2ubuntu2
249.5-2ubuntu3
249.5-2ubuntu4
249.9-0ubuntu2
249.10-0ubuntu1
249.10-0ubuntu2
249.11-0ubuntu1
249.11-0ubuntu2
249.11-0ubuntu3
249.11-0ubuntu3.1
249.11-0ubuntu3.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-myhostname"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-myhostname-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-mymachines"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-mymachines-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-resolve"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-resolve-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-systemd"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libnss-systemd-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libpam-systemd"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libpam-systemd-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libsystemd-dev"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libsystemd0"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libsystemd0-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libudev-dev"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libudev1"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "libudev1-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-container"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-container-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-coredump"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-coredump-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-journal-remote"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-journal-remote-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-oomd"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-oomd-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-standalone-sysusers"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-standalone-sysusers-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-standalone-tmpfiles"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-standalone-tmpfiles-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-sysv"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-tests"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-tests-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-timesyncd"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "systemd-timesyncd-dbgsym"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "udev"
        },
        {
            "binary_version": "249.11-0ubuntu3.4",
            "binary_name": "udev-dbgsym"
        }
    ]
}