cve.bz

CVE-2021-3782 wayland wayland: Year 2038 problem, Y2K38, Y2038, Epochalypse

6.6 mediumExploit referenceEPSS 0.3%Fix available

Medium (6.6) in wayland wayland. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3782 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3782?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3782?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3782 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
wayland:waylandbefore 1.20.91

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14wayland1.21.0-1DEBIAN-CVE-2021-3782
Ubuntu18.04:LTSwayland1.16.0-1ubuntu1.1~18.04.4UBUNTU-CVE-2021-3782 USN-5614-1
Ubuntu20.04:LTSwayland1.18.0-1ubuntu0.1UBUNTU-CVE-2021-3782 USN-5614-1
Ubuntu22.04:LTSwayland1.20.0-1ubuntu0.1UBUNTU-CVE-2021-3782 USN-5614-1
UbuntuPro:16.04:LTSwayland1.12.0-1~ubuntu16.04.3+esm1UBUNTU-CVE-2021-3782 USN-5614-2
Red Hatenterprise_linux:8::appstreamwayland, wayland-devel, libwayland-egl and 10 more0:1.21.0-1.el8RHSA-2023:2786
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morewayland1.18.0-150200.3.3.1SUSE-SU-2023:1873-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1wayland1.16.0-150100.7.3.1SUSE-SU-2023:1874-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4wayland1.19.0-150400.3.3.1SUSE-SU-2023:1860-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5wayland1.13.0-3.3.1SUSE-SU-2023:1864-1
openSUSELeap 15.4, Leap Micro 5.3wayland1.19.0-150400.3.3.1SUSE-SU-2023:1860-1
AlmaLinux8wayland-devel, libwayland-egl, libwayland-client and 2 more1.21.0-1.el8ALSA-2023:2786
Rocky Linux8wayland0:1.21.0-1.el8RLSA-2023:2786
Azure Linux2wayland1.21.0-1AZL-11019

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8wayland-0:1.21.0-1.el8Fixed 2023-05-16RHSA-2023:2786
Red Hat Enterprise Linux 7waylandWill not fix
Red Hat Enterprise Linux 9waylandWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3782.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON