CVE-2021-3782
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
32- osv-coords29 versionspkg:rpm/almalinux/libwayland-clientpkg:rpm/almalinux/libwayland-cursorpkg:rpm/almalinux/libwayland-eglpkg:rpm/almalinux/libwayland-serverpkg:rpm/almalinux/wayland-develpkg:rpm/opensuse/wayland&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/wayland&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/suse/wayland&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/wayland&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/wayland&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/wayland&distro=SUSE%20Manager%20Proxy%204.2pkg:rpm/suse/wayland&distro=SUSE%20Manager%20Server%204.2
< 1.21.0-1.el8+ 28 more
- (no CPE)range: < 1.21.0-1.el8
- (no CPE)range: < 1.21.0-1.el8
- (no CPE)range: < 1.21.0-1.el8
- (no CPE)range: < 1.21.0-1.el8
- (no CPE)range: < 1.21.0-1.el8
- (no CPE)range: < 1.19.0-150400.3.3.1
- (no CPE)range: < 1.19.0-150400.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.16.0-150100.7.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.19.0-150400.3.3.1
- (no CPE)range: < 1.19.0-150400.3.3.1
- (no CPE)range: < 1.19.0-150400.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.13.0-3.3.1
- (no CPE)range: < 1.16.0-150100.7.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.13.0-3.3.1
- (no CPE)range: < 1.16.0-150100.7.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.13.0-3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
- (no CPE)range: < 1.18.0-150200.3.3.1
Patches
Vulnerability mechanics
References
1- gitlab.freedesktop.org/wayland/wayland/-/issues/224nvdExploitIssue TrackingPatchThird Party Advisory
News mentions
0No linked articles in our index yet.