CVE-2021-3782

Public Exploit

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.

Category

6.6
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.02%
Third-Party Advisory freedesktop.org
Affected: n/a wayland
Published at:
Updated at:

References

Link Tags
https://gitlab.freedesktop.org/wayland/wayland/-/issues/224 exploit patch issue tracking third party advisory

Frequently Asked Questions

What is the severity of CVE-2021-3782?
CVE-2021-3782 has been scored as a medium severity vulnerability.
How to fix CVE-2021-3782?
To fix CVE-2021-3782, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-3782 being actively exploited in the wild?
It is possible that CVE-2021-3782 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-3782?
CVE-2021-3782 affects n/a wayland.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.