UBUNTU-CVE-2022-24903

Source
https://ubuntu.com/security/CVE-2022-24903
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24903.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-24903
Related
Published
2022-05-05T00:00:00Z
Modified
2024-10-15T14:09:48Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Rsyslog is a rocket-fast system for log processing. Modules for TCP syslog reception have a potential heap buffer overflow when octet-counted framing is used. This can result in a segfault or some other malfunction. As of our understanding, this vulnerability can not be used for remote code execution. But there may still be a slight chance for experts to do that. The bug occurs when the octet count is read. While there is a check for the maximum number of octets, digits are written to a heap buffer even when the octet count is over the maximum, This can be used to overrun the memory buffer. However, once the sequence of digits stop, no additional characters can be added to the buffer. In our opinion, this makes remote exploits impossible or at least highly complex. Octet-counted framing is one of two potential framing modes. It is relatively uncommon, but enabled by default on receivers. Modules imtcp, imptcp, imgssapi, and imhttp are used for regular syslog message reception. It is best practice not to directly expose them to the public. When this practice is followed, the risk is considerably lower. Module imdiag is a diagnostics module primarily intended for testbench runs. We do not expect it to be present on any production installation. Octet-counted framing is not very common. Usually, it needs to be specifically enabled at senders. If users do not need it, they can turn it off for the most important modules. This will mitigate the vulnerability.

References

Affected packages

Ubuntu:Pro:14.04:LTS / rsyslog

Package

Name
rsyslog
Purl
pkg:deb/ubuntu/rsyslog?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

5.*

5.8.11-2ubuntu4

7.*

7.4.4-1ubuntu1
7.4.4-1ubuntu2
7.4.4-1ubuntu2.1
7.4.4-1ubuntu2.3
7.4.4-1ubuntu2.5
7.4.4-1ubuntu2.6
7.4.4-1ubuntu2.7

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / rsyslog

Package

Name
rsyslog
Purl
pkg:deb/ubuntu/rsyslog?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.16.0-1ubuntu3.1+esm2

Affected versions

8.*

8.12.0-1ubuntu2
8.12.0-1ubuntu3
8.14.0-2ubuntu1
8.14.0-2ubuntu2
8.16.0-1ubuntu1
8.16.0-1ubuntu2
8.16.0-1ubuntu3
8.16.0-1ubuntu3.1
8.16.0-1ubuntu3.1+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-dbgsym"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-elasticsearch"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-elasticsearch-dbgsym"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-gnutls"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-gnutls-dbgsym"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-gssapi"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-gssapi-dbgsym"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-mysql"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-mysql-dbgsym"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-pgsql"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-pgsql-dbgsym"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-relp"
        },
        {
            "binary_version": "8.16.0-1ubuntu3.1+esm2",
            "binary_name": "rsyslog-relp-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / rsyslog

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.32.0-1ubuntu4.2

Affected versions

8.*

8.16.0-1ubuntu9
8.16.0-1ubuntu10
8.32.0-1ubuntu3
8.32.0-1ubuntu4

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-czmq"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-czmq-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-elasticsearch"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-elasticsearch-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-gnutls"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-gnutls-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-gssapi"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-gssapi-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-hiredis"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-hiredis-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-kafka"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-kafka-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-mongodb"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-mongodb-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-mysql"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-mysql-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-pgsql"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-pgsql-dbgsym"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-relp"
        },
        {
            "binary_version": "8.32.0-1ubuntu4.2",
            "binary_name": "rsyslog-relp-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / rsyslog

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.2001.0-1ubuntu1.3

Affected versions

8.*

8.1901.0-1ubuntu4
8.2001.0-1ubuntu1
8.2001.0-1ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-czmq"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-czmq-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-elasticsearch"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-elasticsearch-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-gnutls"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-gnutls-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-gssapi"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-gssapi-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-hiredis"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-hiredis-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-kafka"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-kafka-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-mongodb"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-mongodb-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-mysql"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-mysql-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-openssl"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-openssl-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-pgsql"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-pgsql-dbgsym"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-relp"
        },
        {
            "binary_version": "8.2001.0-1ubuntu1.3",
            "binary_name": "rsyslog-relp-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / rsyslog

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.2112.0-2ubuntu2.2

Affected versions

8.*

8.2102.0-2ubuntu2
8.2110.0-3ubuntu1
8.2110.0-3ubuntu2
8.2110.0-4ubuntu1
8.2112.0-2ubuntu2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-czmq"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-czmq-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-elasticsearch"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-elasticsearch-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-gnutls"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-gnutls-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-gssapi"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-gssapi-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-hiredis"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-hiredis-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-kafka"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-kafka-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-kubernetes"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-kubernetes-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-mongodb"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-mongodb-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-mysql"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-mysql-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-openssl"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-openssl-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-pgsql"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-pgsql-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-relp"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-relp-dbgsym"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-snmp"
        },
        {
            "binary_version": "8.2112.0-2ubuntu2.2",
            "binary_name": "rsyslog-snmp-dbgsym"
        }
    ]
}