CVEfocus › CVE database › CVE-2021-3782

CVE-2021-3782

CVSS 6.6 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2022-09-23Updated 2025-05-22Assigner: redhat

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.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Fixed
2Fix pending
12Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04waylandFixed1.20.0-1ubuntu0.1UBUNTU-CVE-2021-3782
Ubuntu 20.04waylandFixed1.18.0-1ubuntu0.1UBUNTU-CVE-2021-3782
Ubuntu 18.04waylandFixed1.16.0-1ubuntu1.1~18.04.4UBUNTU-CVE-2021-3782
Ubuntu 16.04waylandFix pending1.12.0-1~ubuntu16.04.3+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-3782
Ubuntu 14.04waylandFix pending
Debian 14waylandFixed1.21.0-1DEBIAN-CVE-2021-3782
Debian 13waylandFixed1.21.0-1DEBIAN-CVE-2021-3782
Debian 12waylandFixed1.21.0-1DEBIAN-CVE-2021-3782
Red Hat Enterprise Linux 9libwayland-clientWill not fix
Will not fix
Red Hat Enterprise Linux 9libwayland-cursorWill not fix
Will not fix
Red Hat Enterprise Linux 9libwayland-eglWill not fix
Will not fix
Red Hat Enterprise Linux 9libwayland-serverWill not fix
Will not fix
Red Hat Enterprise Linux 9wayland-develWill not fix
Will not fix
Red Hat Enterprise Linux 8libwayland-clientFixed0:1.21.0-1.el8RHSA-2023:2786
Red Hat Enterprise Linux 8libwayland-cursorFixed0:1.21.0-1.el8RHSA-2023:2786
Red Hat Enterprise Linux 8libwayland-eglFixed0:1.21.0-1.el8RHSA-2023:2786
Red Hat Enterprise Linux 8libwayland-serverFixed0:1.21.0-1.el8RHSA-2023:2786
Red Hat Enterprise Linux 8waylandFixed0:1.21.0-1.el8RHSA-2023:2786
Red Hat Enterprise Linux 8wayland-develFixed0:1.21.0-1.el8RHSA-2023:2786
Red Hat Enterprise Linux 7libwayland-clientWill not fix
Will not fix
Red Hat Enterprise Linux 7libwayland-cursorWill not fix
Will not fix
Red Hat Enterprise Linux 7libwayland-eglWill not fix
Will not fix
Red Hat Enterprise Linux 7libwayland-serverWill not fix
Will not fix
Red Hat Enterprise Linux 7waylandWill not fix
Will not fix
Red Hat Enterprise Linux 7wayland-develWill not fix
Will not fix
Red Hat Enterprise Linux 7wayland-docWill not fix
Will not fix
AlmaLinux 8libwayland-clientFixed1.21.0-1.el8ALSA-2023:2786
AlmaLinux 8libwayland-cursorFixed1.21.0-1.el8ALSA-2023:2786
AlmaLinux 8libwayland-eglFixed1.21.0-1.el8ALSA-2023:2786
AlmaLinux 8libwayland-serverFixed1.21.0-1.el8ALSA-2023:2786
AlmaLinux 8wayland-develFixed1.21.0-1.el8ALSA-2023:2786
Rocky Linux 8waylandFixed0:1.21.0-1.el8RLSA-2023:2786

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.