CVE-2021-3782: Integer Overflow
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 wlshm 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 wlshmpool 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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2021-3782?
CVE-2021-3782 is classified as a high-severity vulnerability due to its potential to cause buffer overflow issues.
How do I fix CVE-2021-3782?
To fix CVE-2021-3782, you should upgrade to Wayland version 1.20.91 or later.
What software is affected by CVE-2021-3782?
CVE-2021-3782 affects Wayland versions prior to 1.20.91.
What type of vulnerability is CVE-2021-3782?
CVE-2021-3782 is a buffer overflow vulnerability related to the reference count management in the Wayland buffer pool.
Can CVE-2021-3782 lead to security breaches?
Yes, CVE-2021-3782 can lead to security breaches due to the possibility of exploiting the buffer overflow.