UBUNTU-CVE-2021-3782

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

An internal reference count is held on the buffer pool, incremented every time a new buffer is created from the pool. The reference count is maintained as an int; on LP64 systems this can cause the reference count to overflow if the client creates a large number of wlshm buffer objects, or if it can coerce the server to create a large number of external references to the buffer storage. With the reference count overflowing, a use-after-free can be constructed on the wlshm_pool tracking structure, where values may be incremented or decremented; it may also be possible to construct a limited oracle to leak 4 bytes of server-side memory to the attacking client at a time.

References

Affected packages

Ubuntu:Pro:16.04:LTS / wayland

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.12.0-1~ubuntu16.04.3+esm1

Affected versions

1.*

1.8.1-1
1.9.0-1
1.12.0-1~ubuntu16.04.1
1.12.0-1~ubuntu16.04.2
1.12.0-1~ubuntu16.04.3

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-bin"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-bin-dbgsym"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-client0"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-client0-dbgsym"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-cursor0"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-cursor0-dbgsym"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-dev"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-doc"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-server0"
        },
        {
            "binary_version": "1.12.0-1~ubuntu16.04.3+esm1",
            "binary_name": "libwayland-server0-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / wayland

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.16.0-1ubuntu1.1~18.04.4

Affected versions

1.*

1.14.0-1
1.14.0-2
1.16.0-1ubuntu1.1~18.04.1
1.16.0-1ubuntu1.1~18.04.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-bin"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-bin-dbgsym"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-client0"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-client0-dbgsym"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-cursor0"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-cursor0-dbgsym"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-dev"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-doc"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-egl-backend-dev"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-egl1"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-egl1-dbgsym"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-server0"
        },
        {
            "binary_version": "1.16.0-1ubuntu1.1~18.04.4",
            "binary_name": "libwayland-server0-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / wayland

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.0-1ubuntu0.1

Affected versions

1.*

1.17.0-1
1.17.0-1build1
1.17.0-1build2
1.18.0-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-bin"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-bin-dbgsym"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-client0"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-client0-dbgsym"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-cursor0"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-cursor0-dbgsym"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-dev"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-doc"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-egl-backend-dev"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-egl1"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-egl1-dbgsym"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-server0"
        },
        {
            "binary_version": "1.18.0-1ubuntu0.1",
            "binary_name": "libwayland-server0-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / wayland

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.20.0-1ubuntu0.1

Affected versions

1.*

1.19.0-2build1
1.20.0-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-bin"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-bin-dbgsym"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-client0"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-client0-dbgsym"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-cursor0"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-cursor0-dbgsym"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-dev"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-doc"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-egl-backend-dev"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-egl1"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-egl1-dbgsym"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-server0"
        },
        {
            "binary_version": "1.20.0-1ubuntu0.1",
            "binary_name": "libwayland-server0-dbgsym"
        }
    ]
}