Every CVE Search/ Get API key

CVE-2021-3782

An internal reference count is held on the buffer pool, incremented every time a new buffer is...

6.6 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
High

Exploit likelihood

0.32%Down 0.6 points since Sep 24, 2022
90%50%10%1%

What each source reports

NVD Score used 6.6

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.

Record
CVE-2021-3782
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Weakness
CWE-190
Updated
2026-11-02
CVE List 6.6

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.

Record
CVE-2021-3782
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Weakness
CWE-190
Updated
2026-11-02
EUVDEUVD-2021-27046 6.6

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.

Record
EUVD-2021-27046
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-pvw2-9h4r-c5cr 9.8

An internal reference count is held on the buffer pool, incremented every time a new buffer is...

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.

Record
GHSA-pvw2-9h4r-c5cr
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-190
Updated
2026-11-02
OSVAZL-11019 6.6

CVE-2021-3782 affecting package wayland for versions less than 1.21.0-1

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.

Record
AZL-11019
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVBELL-CVE-2021-3782 6.6

CVE-2021-3782 does not affect BellSoft software

Record
BELL-CVE-2021-3782
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
Show 15 moreShow less
OSV 6.6

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.

Record
CVE-2021-3782
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-3782 6.6

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.

Record
DEBIAN-CVE-2021-3782
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVJLSEC-2026-97 6.6

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.

Record
JLSEC-2026-97
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVOESA-2022-1920 6.6

wayland security update

Wayland is a protocol for a compositor to talk to its clients as well as a C library implementation of that protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers. Part of the Wayland project is also the Weston reference implementation of a Wayland compositor. Weston can run as an X client or under Linux KMS and ships with a few demo clients. The Weston compositor is a minimal and fast compositor and is suitable for many embedded and mobile use cases.

Security Fix(es):

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.(CVE-2021-3782)

Record
OESA-2022-1920
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
Updated
2026-11-02
OSVRHSA-2023:2786 6.6

Red Hat Security Advisory: wayland security, bug fix, and enhancement update

Record
RHSA-2023:2786
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVRLSA-2023:2786 6.6

Moderate: wayland security, bug fix, and enhancement update

Wayland is a protocol for a compositor to talk to its clients, as well as a C library implementation of that protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers.

The following packages have been upgraded to a later upstream version: wayland (1.21.0). (BZ#2137625)

Security Fix(es):

  • wayland: libwayland-server wl_shm reference-count overflow (CVE-2021-3782)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.8 Release Notes linked from the References section.

Record
RLSA-2023:2786
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-3782 6.6

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.

Record
UBUNTU-CVE-2021-3782
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
Updated
2026-11-02
OSVALSA-2023:2786 No score

Moderate: wayland security, bug fix, and enhancement update

Wayland is a protocol for a compositor to talk to its clients, as well as a C library implementation of that protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself. The clients can be traditional applications, X servers (rootless or fullscreen) or other display servers.

The following packages have been upgraded to a later upstream version: wayland (1.21.0). (BZ#2137625)

Security Fix(es):

  • wayland: libwayland-server wl_shm reference-count overflow (CVE-2021-3782)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2023:2786
Updated
2026-11-02
OSVMGASA-2022-0418 No score

Updated wayland packages fix security vulnerability

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. (CVE-2021-3782)

Record
MGASA-2022-0418
Updated
2026-11-02
OSVSUSE-SU-2023:1860-1 No score

Security update for wayland

This update for wayland fixes the following issues:

  • CVE-2021-3782: Fixed a reference-count overflow in libwayland-server SHM handling. (bsc#1190486)
Record
SUSE-SU-2023:1860-1
Updated
2026-11-02
OSVSUSE-SU-2023:1864-1 No score

Security update for wayland

This update for wayland fixes the following issues:

  • CVE-2021-3782: Fixed a reference-count overflow in libwayland-server SHM handling. (bsc#1190486)
Record
SUSE-SU-2023:1864-1
Updated
2026-11-02
OSVSUSE-SU-2023:1873-1 No score

Security update for wayland

This update for wayland fixes the following issues:

  • CVE-2021-3782: Fixed a reference-count overflow in libwayland-server SHM handling. (bsc#1190486)
Record
SUSE-SU-2023:1873-1
Updated
2026-11-02
OSVSUSE-SU-2023:1874-1 No score

Security update for wayland

This update for wayland fixes the following issues:

  • CVE-2021-3782: Fixed a reference-count overflow in libwayland-server SHM handling. (bsc#1190486)
Record
SUSE-SU-2023:1874-1
Updated
2026-11-02
OSVUSN-5614-1 No score

wayland vulnerability

It was discovered that Wayland incorrectly handled reference counting certain objects. An attacker could use this issue to cause Wayland to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-5614-1
Updated
2026-11-02
OSVUSN-5614-2 No score

wayland vulnerability

USN-5614-1 fixed a vulnerability in Wayland. This update provides the corresponding update for Ubuntu 16.04 ESM.

Original advisory details:

It was discovered that Wayland incorrectly handled reference counting certain objects. An attacker could use this issue to cause Wayland to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-5614-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libwayland-client
AlmaLinux:8
before 1.21.0-1.el8
1.21.0-1.el8
libwayland-cursor
AlmaLinux:8
before 1.21.0-1.el8
1.21.0-1.el8
libwayland-egl
AlmaLinux:8
before 1.21.0-1.el8
1.21.0-1.el8
libwayland-server
AlmaLinux:8
before 1.21.0-1.el8
1.21.0-1.el8
wayland-devel
AlmaLinux:8
before 1.21.0-1.el8
1.21.0-1.el8
wayland
Azure Linux:2
before 1.21.0-1
1.21.0-1
wayland
Debian:12
before 1.21.0-1
1.21.0-1
wayland
Debian:13
before 1.21.0-1
1.21.0-1
wayland
Debian:14
before 1.21.0-1
1.21.0-1
Wayland_jll
Julia
before 1.21.0+0
1.21.0+0
Show 46 moreShow less
Affected packages
PackageAffectedFixed
wayland
Mageia:8
before 1.18.0-3.1.mga8
1.18.0-3.1.mga8
wayland
openEuler:20.03-LTS-SP1
before 1.17.0-3.oe1
1.17.0-3.oe1
wayland
openEuler:20.03-LTS-SP3
before 1.17.0-3.oe1
1.17.0-3.oe1
wayland
openEuler:22.03-LTS
before 1.19.91-4.oe2203
1.19.91-4.oe2203
libwayland-client
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-client-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-cursor
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-cursor-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-egl
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-egl-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-server
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
libwayland-server-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland-debugsource
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland-devel
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland-devel-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland
Rocky Linux:8
before 0:1.21.0-1.el8
0:1.21.0-1.el8
wayland
SUSE:Linux Enterprise Micro 5.3
before 1.19.0-150400.3.3.1
1.19.0-150400.3.3.1
wayland
SUSE:Linux Enterprise Micro 5.4
before 1.19.0-150400.3.3.1
1.19.0-150400.3.3.1
wayland
SUSE:Linux Enterprise Module for Basesystem 15 SP4
before 1.19.0-150400.3.3.1
1.19.0-150400.3.3.1
wayland
openSUSE:Leap Micro 5.3
before 1.19.0-150400.3.3.1
1.19.0-150400.3.3.1
wayland
openSUSE:Leap 15.4
before 1.19.0-150400.3.3.1
1.19.0-150400.3.3.1
wayland
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 1.13.0-3.3.1
1.13.0-3.3.1
wayland
SUSE:Linux Enterprise Server 12 SP5
before 1.13.0-3.3.1
1.13.0-3.3.1
wayland
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 1.13.0-3.3.1
1.13.0-3.3.1
wayland
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise Real Time 15 SP3
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise Server 15 SP3-LTSS
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Manager Proxy 4.2
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Manager Server 4.2
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise Micro 5.2
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Enterprise Storage 7
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Enterprise Storage 7.1
before 1.18.0-150200.3.3.1
1.18.0-150200.3.3.1
wayland
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
before 1.16.0-150100.7.3.1
1.16.0-150100.7.3.1
wayland
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 1.16.0-150100.7.3.1
1.16.0-150100.7.3.1
wayland
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
before 1.16.0-150100.7.3.1
1.16.0-150100.7.3.1
wayland
Ubuntu:Pro:16.04:LTS
before 1.12.0-1~ubuntu16.04.3+esm1, plus listed versions
1.8.1-11.9.0-11.12.0-1~ubuntu16.04.11.12.0-1~ubuntu16.04.21.12.0-1~ubuntu16.04.3
1.12.0-1~ubuntu16.04.3+esm1
wayland
Ubuntu:18.04:LTS
before 1.16.0-1ubuntu1.1~18.04.4, plus listed versions
1.14.0-11.14.0-21.16.0-1ubuntu1.1~18.04.11.16.0-1ubuntu1.1~18.04.3
1.16.0-1ubuntu1.1~18.04.4
wayland
Ubuntu:20.04:LTS
before 1.18.0-1ubuntu0.1, plus listed versions
1.17.0-11.17.0-1build11.17.0-1build21.18.0-1
1.18.0-1ubuntu0.1
wayland
Ubuntu:22.04:LTS
before 1.20.0-1ubuntu0.1, plus listed versions
1.19.0-2build11.20.0-1
1.20.0-1ubuntu0.1

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-3782 is a medium vulnerability (CVSS 6.6) in Microsoft Wayland, published August 30, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.32%, the 24th percentile. Fixed in libwayland-client 1.21.0-1.el8.

References

Show 22 moreShow less
MoveEnter Open