CVE-2021-3782

Medium

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.

SeverityMedium
CVSS6.6
Exploit probability—
ProductWayland
PublishedSep 23, 2022
First seenSep 23, 2022

How to fix

Update
  • wayland wayland1.20.91 or later

Affected products

ProductAffected versionsFixed in
wayland waylandv < 1.20.911.20.91

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.