CVE & CISA-KEV Catalog

CVE-2021-3782

MEDIUM
6.6
CVSS v3
NVD

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.

How to fix

Remediation Available
waylandDebian
Fixed in:1.21.0-1CVE-2021-3782
Fixed in:1.21.0-1CVE-2021-3782
Fixed in:1.21.0-1CVE-2021-3782
libwayland-clientRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-clientRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-client-debuginfoRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-client-debuginfoRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-cursorRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-cursorRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-cursor-debuginfoRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-cursor-debuginfoRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-eglRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-eglRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-egl-debuginfoRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-egl-debuginfoRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-serverRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-serverRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-server-debuginfoRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-server-debuginfoRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
waylandRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
waylandRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-debuginfoRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-debuginfoRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-debugsourceRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-debugsourceRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-develRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-develRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-devel-debuginfoRed Hat / RHEL
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
wayland-devel-debuginfoRocky
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
Fixed in:0:1.21.0-1.el8RHSA-2023:2786
libwayland-binUbuntu
Fixed in:1.12.0-1~ubuntu16.04.3+esm1USN-5614-2
Fixed in:1.16.0-1ubuntu1.1~18.04.4USN-5614-1
Fixed in:1.18.0-1ubuntu0.1USN-5614-1
Fixed in:1.20.0-1ubuntu0.1USN-5614-1
libwayland-client0Ubuntu
Fixed in:1.12.0-1~ubuntu16.04.3+esm1USN-5614-2
Fixed in:1.16.0-1ubuntu1.1~18.04.4USN-5614-1
Fixed in:1.18.0-1ubuntu0.1USN-5614-1
Fixed in:1.20.0-1ubuntu0.1USN-5614-1
libwayland-cursor0Ubuntu
Fixed in:1.12.0-1~ubuntu16.04.3+esm1USN-5614-2
libwayland-egl1Ubuntu
Fixed in:1.16.0-1ubuntu1.1~18.04.4USN-5614-1
Fixed in:1.18.0-1ubuntu0.1USN-5614-1
Fixed in:1.20.0-1ubuntu0.1USN-5614-1
libwayland-server0Ubuntu
Fixed in:1.12.0-1~ubuntu16.04.3+esm1USN-5614-2
Fixed in:1.16.0-1ubuntu1.1~18.04.4USN-5614-1
Fixed in:1.18.0-1ubuntu0.1USN-5614-1
Fixed in:1.20.0-1ubuntu0.1USN-5614-1
waylandUbuntu
Fixed in:1.12.0-1~ubuntu16.04.3+esm1USN-5614-2
Fixed in:1.16.0-1ubuntu1.1~18.04.4USN-5614-1
Fixed in:1.18.0-1ubuntu0.1USN-5614-1
Fixed in:1.20.0-1ubuntu0.1USN-5614-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

Exploit Intelligence

0.30%probability of exploitation in 30 days
21stpercentile

Low risk: more likely to be exploited than 21% of all known CVEs.

References

Related Vulnerabilities

Other CWE-190 (Integer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-16040Medium6.5100%-Fix
CVE-2019-11477High7.599%-Fix
CVE-2023-44443High7.894%-Fix
CVE-2014-0569High9.390%--
CVE-2017-3599High7.590%-Fix
CVE-2023-21716Critical9.882%-Fix
Embed a live status badge for CVE-2021-3782
CVE-2021-3782 severity badge

Markdown

[![CVE-2021-3782](https://tridentstack.com/cve/badge/CVE-2021-3782.svg)](https://tridentstack.com/cve/CVE-2021-3782)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-3782"><img src="https://tridentstack.com/cve/badge/CVE-2021-3782.svg" alt="CVE-2021-3782"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-22.