CVE-2021-3782
published medium CVSS 3.1 · 6.6wayland: libwayland-server wl_shm reference-count overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | waylandwayland 1.20.91 | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2103 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-203 | Fixed | Not stated | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-8 | waylandsrc | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Ubuntu | bionic | wayland | Advisory build | 1.16.0-1ubuntu1.1~18.04.4 | USN-5614-1 |
| AlmaLinux | 8 | libwayland-client | Advisory build | 1.21.0-1.el8 | ALSA-2023:2786 |
| Oracle Linux | 8 | libwayland-clientaarch64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-client0aarch64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | wayland | Advisory build | 1.18.0-1ubuntu0.1 | USN-5614-1 |
| Ubuntu | jammy | wayland | Advisory build | 1.20.0-1ubuntu0.1 | USN-5614-1 |
| Ubuntu | xenial | wayland | Advisory build | 1.12.0-1~ubuntu16.04.3+esm1 | USN-5614-2 |
| AlmaLinux | 8 | libwayland-cursor | Advisory build | 1.21.0-1.el8 | ALSA-2023:2786 |
| AlmaLinux | 8 | libwayland-egl | Advisory build | 1.21.0-1.el8 | ALSA-2023:2786 |
| AlmaLinux | 8 | libwayland-server | Advisory build | 1.21.0-1.el8 | ALSA-2023:2786 |
| AlmaLinux | 8 | wayland-devel | Advisory build | 1.21.0-1.el8 | ALSA-2023:2786 |
| Oracle Linux | 8 | libwayland-clientx86_64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | libwayland-cursoraarch64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | libwayland-cursorx86_64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | libwayland-eglaarch64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | libwayland-eglx86_64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | libwayland-serveraarch64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | libwayland-serverx86_64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | wayland-develaarch64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Oracle Linux | 8 | wayland-develx86_64 | Advisory build | 0:1.21.0-1.el8 | ELSA-2023-2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-clientaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-clienti686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-clientppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-clients390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-clientx86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-client-debuginfoaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-client-debuginfoi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-client-debuginfoppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-client-debuginfos390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-client-debuginfox86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursoraarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursori686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursorppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursors390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursorx86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursor-debuginfoaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursor-debuginfoi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursor-debuginfoppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursor-debuginfos390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-cursor-debuginfox86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-eglaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egli686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-eglppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egls390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-eglx86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egl-debuginfoaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egl-debuginfoi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egl-debuginfoppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egl-debuginfos390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-egl-debuginfox86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-serveraarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-serveri686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-serverppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-servers390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-serverx86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-server-debuginfoaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-server-debuginfoi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-server-debuginfoppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-server-debuginfos390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | libwayland-server-debuginfox86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debuginfoaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debuginfoi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debuginfoppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debuginfos390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debuginfox86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debugsourceaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debugsourcei686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debugsourceppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debugsources390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-debugsourcex86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-develaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-develi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-develppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-devels390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-develx86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-devel-debuginfoaarch64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-devel-debuginfoi686 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-devel-debuginfoppc64le | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-devel-debuginfos390x | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| Red Hat Enterprise Linux | RHEL-8 | wayland-devel-debuginfox86_64 | Advisory build | 1.21.0-1.el8 | RHSA-2023:2786 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-client0ppc64le | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-client0s390x | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-client0x86_64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-cursor0aarch64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-cursor0ppc64le | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-cursor0s390x | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-cursor0x86_64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-server0aarch64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-server0ppc64le | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-server0s390x | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | libwayland-server0x86_64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | wayland-develaarch64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | wayland-develppc64le | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | wayland-devels390x | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-12-SP5 | wayland-develx86_64 | Advisory build | 1.13.0-3.3.1 | SUSE-SU-2023:1864-1 |
| SUSE / openSUSE | SLE-15-SP1 | libwayland-client0aarch64 | Advisory build | 1.16.0-150100.7.3.1 | SUSE-SU-2023:1874-1 |
| SUSE / openSUSE | SLE-15-SP1 | libwayland-client0ppc64le | Advisory build | 1.16.0-150100.7.3.1 | SUSE-SU-2023:1874-1 |
| SUSE / openSUSE | SLE-15-SP1 | libwayland-client0s390x | Advisory build | 1.16.0-150100.7.3.1 | SUSE-SU-2023:1874-1 |
| SUSE / openSUSE | SLE-15-SP1 | libwayland-client0x86_64 | Advisory build | 1.16.0-150100.7.3.1 | SUSE-SU-2023:1874-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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 wl_shm 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 wl_shm_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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.6 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | wayland | wayland 1.20.91 (affected) | redhat · cna |
Weaknesses
1- CWE-190 (CWE-190|CWE-911)->CWE-416
References
1Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 80d393c40c03e4079ef3d67844932d0f96c5e80d18aca25104c8119c7858a798
- Ingested
- 23 Sep 2026, 07:55:51 UTC
- Source record
- Official CVE record