UBUNTU-CVE-2021-46822

Source
https://ubuntu.com/security/CVE-2021-46822
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-46822.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-46822
Related
Published
2022-06-18T16:15:00Z
Modified
2024-11-20T12:22:51Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the getwordrgb_row function in rdppm.c.

References

Affected packages

Ubuntu:20.04:LTS / libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:deb/ubuntu/libjpeg-turbo?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.3-0ubuntu1.20.04.3

Affected versions

2.*

2.0.3-0ubuntu1
2.0.3-0ubuntu1.20.04.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo-progs"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo-progs-dbgsym"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo-test"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo-test-dbgsym"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo8"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo8-dbg"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libjpeg-turbo8-dev"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libturbojpeg"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libturbojpeg-dbgsym"
        },
        {
            "binary_version": "2.0.3-0ubuntu1.20.04.3",
            "binary_name": "libturbojpeg0-dev"
        }
    ]
}

Ubuntu:22.04:LTS / libjpeg-turbo

Package

Name
libjpeg-turbo
Purl
pkg:deb/ubuntu/libjpeg-turbo?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.2-0ubuntu1

Affected versions

2.*

2.0.6-0ubuntu2
2.0.6-0ubuntu3
2.1.1-0ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo-progs"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo-progs-dbgsym"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo-test"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo-test-dbgsym"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo8"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo8-dbg"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libjpeg-turbo8-dev"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libturbojpeg"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libturbojpeg-dbgsym"
        },
        {
            "binary_version": "2.1.2-0ubuntu1",
            "binary_name": "libturbojpeg0-dev"
        }
    ]
}