UBUNTU-CVE-2021-42388

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

Heap out-of-bounds read in Clickhouse's LZ4 compression codec when parsing a malicious query. As part of the LZ4::decompressImpl() loop, a 16-bit unsigned user-supplied value ('offset') is read from the compressed data. The offset is later used in the length of a copy operation, without checking the lower bounds of the source of the copy operation.

References

Affected packages

Ubuntu:20.04:LTS / clickhouse

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
18.16.1+ds-7ubuntu0.1

Affected versions

18.*

18.16.1+ds-5
18.16.1+ds-5ubuntu1
18.16.1+ds-5ubuntu2
18.16.1+ds-6ubuntu1
18.16.1+ds-7

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-client"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-client-dbgsym"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-common"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-common-dbgsym"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-server"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-server-dbgsym"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-tools"
        },
        {
            "binary_version": "18.16.1+ds-7ubuntu0.1",
            "binary_name": "clickhouse-tools-dbgsym"
        }
    ]
}

Ubuntu:24.04:LTS / clickhouse

Package

Name
clickhouse
Purl
pkg:deb/ubuntu/clickhouse?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
18.16.1+ds-7.4build2

Affected versions

18.*

18.16.1+ds-7.4
18.16.1+ds-7.4build1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-client"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-client-dbgsym"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-common"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-common-dbgsym"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-server"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-server-dbgsym"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-tools"
        },
        {
            "binary_version": "18.16.1+ds-7.4build2",
            "binary_name": "clickhouse-tools-dbgsym"
        }
    ]
}