Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.6
CVE-2021-3782: 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...
CVE-2021-3782 · published 4 years ago
Summary
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 ca...
What to do
- Update wayland wayland to version 1.20.91 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| wayland | wayland |
< 1.20.91 cpe:2.3:a:wayland:wayland:*:*:*:*:*:*:*:* |
Original advisory text
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...
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.
References
- https://gitlab.freedesktop.org/wayland/wayland/-/issues/224 Exploit Issue Tracking Patch Third Party Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-190Integer Overflow
Timeline
Published23 Sep 2022
Updated4 Nov 2026
First seen29 Sep 2026
Sources
CVE-2021-3782 · NVD
Track software like this
Free during beta