Logo
vulnerabilityCVE-2021-3782
Name
CVE-2021-3782
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
wayland
Patched

Vulnerability Ratings#


6.6
CVSSv31
6.6
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.23.1
Not Affected
buildroot
master
1.24.0
Not Affected
yocto
master
1.25.0
Not Affected
yocto
scarthgap
1.22.0
Not Affected

Resolved with patches#


wayland (yocto:kirkstone)

#
Title
Author
Resolve
1
util: Limit size of wl_map
Derek Foreman <derek.foreman@collabora.com>
CVE-2021-3782