UBUNTU-CVE-2016-2338

Source
https://ubuntu.com/security/CVE-2016-2338
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-2338.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2016-2338
Related
Published
2022-09-29T03:15:00Z
Modified
2022-09-29T03:15:00Z
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

An exploitable heap overflow vulnerability exists in the Psych::Emitter startdocument function of Ruby. In Psych::Emitter startdocument function heap buffer "head" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.

References

Affected packages

Ubuntu:16.04:LTS / ruby2.3

Package

Name
ruby2.3
Purl
pkg:deb/ubuntu/ruby2.3?arch=src?distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.1-2~ubuntu16.04.14

Affected versions

2.*

2.3.0-1
2.3.0-2
2.3.0-4ubuntu2
2.3.0-4ubuntu3
2.3.0-5ubuntu1
2.3.1-2~16.04
2.3.1-2~16.04.2
2.3.1-2~16.04.4
2.3.1-2~16.04.5
2.3.1-2~16.04.6
2.3.1-2~16.04.7
2.3.1-2~16.04.9
2.3.1-2~16.04.10
2.3.1-2~16.04.11
2.3.1-2~16.04.12
2.3.1-2~ubuntu16.04.13

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "libruby2.3"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "libruby2.3-dbg"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "libruby2.3-dbgsym"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3-dbgsym"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3-dev"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3-dev-dbgsym"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3-doc"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3-tcltk"
        },
        {
            "binary_version": "2.3.1-2~ubuntu16.04.14",
            "binary_name": "ruby2.3-tcltk-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / ruby-psych

Package

Name
ruby-psych
Purl
pkg:deb/ubuntu/ruby-psych?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.4-6build4

Affected versions

2.*

2.2.4-6build2
2.2.4-6build3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.2.4-6build4",
            "binary_name": "libpsych-java"
        },
        {
            "binary_version": "2.2.4-6build4",
            "binary_name": "ruby-psych"
        },
        {
            "binary_version": "2.2.4-6build4",
            "binary_name": "ruby-psych-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / ruby2.5

Package

Name
ruby2.5
Purl
pkg:deb/ubuntu/ruby2.5?arch=src?distro=bionic

Affected ranges

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

Affected versions

2.*

2.5.0~preview1-1ubuntu2
2.5.0-4ubuntu1
2.5.0-4ubuntu4
2.5.0-5ubuntu1
2.5.0-6ubuntu1
2.5.1-1ubuntu1
2.5.1-1ubuntu1.1
2.5.1-1ubuntu1.2
2.5.1-1ubuntu1.4
2.5.1-1ubuntu1.5

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.5.1-1ubuntu1.6",
            "binary_name": "libruby2.5"
        },
        {
            "binary_version": "2.5.1-1ubuntu1.6",
            "binary_name": "libruby2.5-dbgsym"
        },
        {
            "binary_version": "2.5.1-1ubuntu1.6",
            "binary_name": "ruby2.5"
        },
        {
            "binary_version": "2.5.1-1ubuntu1.6",
            "binary_name": "ruby2.5-dbgsym"
        },
        {
            "binary_version": "2.5.1-1ubuntu1.6",
            "binary_name": "ruby2.5-dev"
        },
        {
            "binary_version": "2.5.1-1ubuntu1.6",
            "binary_name": "ruby2.5-doc"
        }
    ]
}